CVEvulnerability
CVE-2016-10531
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2018-05-31
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.0 ([email protected])
- 6.1 MEDIUM — CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-79
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 configurations
• marked project marked (<= 0.3.5)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/chjj/marked/pull/592 Exploit, Issue Tracking, Third Party Advisory
- https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523 Patch, Third Party Advisory
- https://nodesecurity.io/advisories/101 Third Party Advisory
- https://github.com/chjj/marked/pull/592 Exploit, Issue Tracking, Third Party Advisory
- https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523 Patch, Third Party Advisory
- https://nodesecurity.io/advisories/101 Third Party Advisory