CVE-2016-10531
Sanitization bypass using HTML Entities in marked
Reported by hackerone · Published May 31, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| marked | marked_project | 0.3.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| HackerOne | marked node module | <=0.3.5 |
| npm | marked | |
| HackerOne | marked node module | 0 |
| NuGet | marked | 0 |
| npm | marked | 0 |
Timeline
- May 31, 2018 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 9, 2026 Security Advisory
- Oct 10, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-10531
vulnetix vdb fixes CVE-2016-10531
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-10531/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2016-10531 advisory