Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Conversation

@petebacondarwin
Copy link
Contributor

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
Contributor 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
Contributor Author

Released as 0.28.0

@dpogue
Copy link
Contributor

dpogue commented Jul 12, 2019

Thanks! 🙇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vulnerable package marked

3 participants