Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vulnerable dependencies #281

Merged
merged 2 commits into from
Jul 12, 2019

Conversation

petebacondarwin
Copy link
Member

The previous version of marked was vulnerable to a
ReDoS
attack.

BREAKING CHANGES

There are a few relevant breaking changes with this latest version of marked.
This only affects usage of the renderMarkdown() service and the marked
nunjucks filter. Take a look through the
marked release notes and
check if this affects you.

Fixes #280

@dpogue
Copy link
Contributor

dpogue commented Jul 11, 2019

marked v0.7.0 has now been released, with another ReDoS fix and a few more breaking changes.

It would be great to see this merged soon, as all of my repos are currently failing npm audit due to this warning.

The previous version of `marked` was vulnerable to a
[ReDoS](https://app.snyk.io/vuln/SNYK-JS-MARKED-174116)
attack.

BREAKING CHANGES

There are a few relevant breaking changes with this latest version of `marked`.
This only affects usage of the `renderMarkdown()` service and the `marked`
nunjucks filter. Take a look through the
[marked release notes](https://github.com/markedjs/marked/releases) and
check if this affects you.

Fixes angular#280
@petebacondarwin
Copy link
Member Author

Working on it... there is also the shelljs issue.

Using `shelljs.exec()` has been flagged as a security issue, so this  commit
removes it as a dependency and uses `child_process.spanSync()` instead.
@petebacondarwin petebacondarwin changed the title fix(nunjucks): upgrade marked to avoid vulnerability fix vulnerable dependencies Jul 12, 2019
@petebacondarwin petebacondarwin merged commit 18a1c0b into angular:master Jul 12, 2019
@petebacondarwin
Copy link
Member Author

Released as 0.28.0

@dpogue
Copy link
Contributor

dpogue commented Jul 12, 2019

Thanks! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vulnerable package marked
3 participants