Description
Versions of `marked` from 0.3.14 until 0.6.2 are vulnerable to Regular Expression Denial of Service. Email addresses may be evaluated in quadratic time, allowing attackers to potentially crash the node process due to resource exhaustion.
## Recommendation
Upgrade to version 0.6.2 or later.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | marked | >= 0.3.14, < 0.6.2 | 0.6.2 | GHSA-xf5p-87ch-gxw2 |
References
- https://github.com/markedjs/marked/pull/1460 web
- https://github.com/markedjs/marked/commit/b15e42b67cec9ded8505e9d68bb8741ad7a9590d web
- https://github.com/markedjs/marked package
- https://github.com/markedjs/marked/releases/tag/v0.6.2 web
- https://snyk.io/vuln/SNYK-JS-MARKED-174116 web
- https://www.npmjs.com/advisories/812 web