CVE-2016-10531
MEDIUM 6.1CVSS 3.0Sanitization bypass using HTML Entities in marked
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.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-vfvf-mqq8-rwqc
- Sources
- NVDJSONOSV GHSA-vfvf-mqq8-rwqcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | marked_project | markedcpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:* |
<= 0.3.5 | |
| OSV | npm | marked | < 0.3.6 | 0.3.6 |
References
- https://github.com/chjj/marked/pull/592 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523 · Patch, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/101 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10531 · ADVISORY
- https://github.com/advisories/GHSA-vfvf-mqq8-rwqc · ADVISORY
- https://www.npmjs.com/advisories/101 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Feb 2019)