{"id":"CVE-2016-10531","aliases":["GHSA-vfvf-mqq8-rwqc"],"url":"https://o3.security/vulnerability/CVE-2016-10531","summary":"Sanitization bypass using HTML Entities in marked","details":"Affected versions of `marked` are susceptible to a cross-site scripting vulnerability in link components when `sanitize:true` is configured. \n\n## Proof of Concept\n\nThis 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.\n\nFor example:\n\nA link URI such as\n```\njavascript&#x58document;alert&#40;1&#41;\n```\nRenders a valid link that when clicked will execute `alert(1)`.\n\n\n## Recommendation\n\nUpdate to version 0.3.6 or later.","published":"2018-05-31T20:29:01.033Z","modified":"2026-07-08T12:43:27.067910Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.01463,"percentile":0.71382,"asOf":"2026-08-16"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"marked","fixedVersion":"0.3.6"}],"fix":{"url":"https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523","label":"chjj/marked#592"},"references":[{"type":"ADVISORY","url":"https://nodesecurity.io/advisories/101"},{"type":"REPORT","url":"https://github.com/chjj/marked/pull/592"},{"type":"FIX","url":"https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10531"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-vfvf-mqq8-rwqc"},{"type":"WEB","url":"https://www.npmjs.com/advisories/101"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T12:43:27.067910Z"}}