CVE-2016-10531 Sanitization bypass using HTML Entities in marked
MediumCVSS 6.1
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
Description
marked is an application that is meant to parse and compile markdown. Due to the way that marked 0.3.5 and earlier parses input, specifically HTML entities, it's possible to bypass marked's content injection protection (sanitize: true) to inject a javascript: URL. This flaw exists because &#xNNanything; gets parsed to what it could and leaves the rest behind, resulting in just anything; being left.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm marked(npm) | < 0.3.6 | 0.3.6 |
| debian/node-marked(Debian:12) | < 0.3.6+dfsg-1 | 0.3.6+dfsg-1 |
| debian/node-marked(Debian:13) | < 0.3.6+dfsg-1 | 0.3.6+dfsg-1 |
| debian/node-marked(Debian:14) | < 0.3.6+dfsg-1 | 0.3.6+dfsg-1 |
| marked project marked | <= 0.3.5 | No fix listed |
| HackerOne marked node module | = <=0.3.5 | No fix listed |
References
- nvd.nist.gov third-party-advisory
- github.com exploit issue-tracking patch third-party-advisory
- github.com patch third-party-advisory
- github.com
- www.npmjs.com
- Debian Security Tracker CVE-2016-10531 vendor-advisory
- nodesecurity.io third-party-advisory