CVE-2016-10531

MEDIUM

marked < 0.3.5 - Cross-Site Scripting via HTML Entity Parsing Bypass

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Third Party Advisory x_refsource_misc
https://nodesecurity.io/advisories/101
Exploit, Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/chjj/marked/pull/592

Scores

CVSS v3 6.1
EPSS 0.0146
EPSS Percentile 70.9%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Details

CWE
CWE-79
Status published
Products (2)
marked_project/marked < 0.3.5
npm/marked 0 - 0.3.6npm
Published May 31, 2018
Tracked Since Feb 18, 2026