{"id":"CVE-2016-10531","aliases":["GHSA-vfvf-mqq8-rwqc"],"kind":"cve","tier":"cold","status":"published","title":"Sanitization bypass using HTML Entities in marked","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.","ai_summary":null,"severity":"medium","cvss":{"score":6.1,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD"},"scores":[{"score":6.1,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd"},{"score":4.3,"version":"2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"nvd"}],"cwe":["CWE-79"],"remote":true,"remote_unauth":true,"epss":{"score":0.01413,"percentile":0.73637,"date":"2026-12-04"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"npm","name":"marked","affected":"< 0.3.6","fixed":["0.3.6"],"source":"osv"}],"affected_products":[{"vendor":"HackerOne","product":"marked node module","versions":"<=0.3.5","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade marked to 0.3.6 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10531","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-vfvf-mqq8-rwqc","kind":"vendor"},{"url":"https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523","kind":"patch"},{"url":"https://github.com/chjj/marked/pull/592","kind":"patch"},{"url":"https://nodesecurity.io/advisories/101","kind":"other"},{"url":"https://www.npmjs.com/advisories/101","kind":"other"}],"workarounds":null,"vendors":["hackerone","marked_project"],"products":["marked","marked node module"],"cpes":["cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*"],"published_at":"2018-05-31T20:00:00.000Z","modified_at":"2026-06-17T00:39:53.253Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10531"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-vfvf-mqq8-rwqc","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2016-10531","markdown":"https://flawdb.com/CVE-2016-10531.md","json":"https://flawdb.com/api/v1/entries/CVE-2016-10531"}}