CVE-2016-10531
mediumpriority · track · 25EPSS 0.014 · 73 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-vfvf-mqq8-rwqcSanitization bypass using HTML Entities in marked2019-02-18ghsa · osvUS
Affected versions of `marked` are susceptible to a cross-site scripting vulnerability in link components when `sanitize:true` is configured. ## Proof of Concept This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted. For example: A link URI such as ``` javascript֍ocument;alert(1) ``` Renders a valid link that when clicked will execute `alert(1)`. ## Recommendation Update to version 0.3.6 or later.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- http://www.ibm.com/support/docview.wss?uid=ibm10794165cnnvd
- http://www.ibm.com/support/docview.wss?uid=ibm10885478cnnvd
- https://github.com/chjj/marked/pull/592cnnvd
- https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523cnnvd
- https://github.com/markedjs/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523Patchcnnvd
- https://nodesecurity.io/advisories/101cnnvd
- https://vigilance.fr/vulnerability/Node-js-marked-Cross-Site-Scripting-29158cnnvd
- https://www-01.ibm.com/support/docview.wss?uid=ibm10882762cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan