CVE-2017-16016 · hackerone
CVE-2017-16016
Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain scenarios: If allowed at least one nonTextTags, the result is a potential XSS vulnerability.
Published 2018-06-04, last changed 2026-06-17. Weakness: CWE-79.
How to fix
Upgrade to a fixed version: sanitize-html 1.11.4 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in punkave/sanitize-html by 5d205a1005, 5d205a1005. Functions changed by the fix: sanitizeHtml. Regression tests: test/test.js. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2018-06-04 | Published |
| 2018-11-09 | Package advisory GHSA-xc6g-ggrc-qq4r |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.31% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-xc6g-ggrc-qq4r | sanitize-html (npm) | 1.11.4 |
Also known as: GHSA-xc6g-ggrc-qq4r
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-113661 | 2026-10-20 | 5.4 | ApostropheCMS: Incomplete CVE-2026-53606: `meta http-equiv=refresh` `content` still ships `javascript:` / `data:` URLs |
| CVE-2026-113657 | 2026-10-20 | 3.7 | ApostropheCMS sanitize-html: SMIL animation namespace-prefix bypass allows javascript: URI injection (XSS) |
| CVE-2026-113654 | 2026-10-20 | 5.3 | ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting content render |
| CVE-2026-113650 | 2026-10-20 | 5.3 | ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced) |
| CVE-2026-84371 | 2026-09-01 | 5.4 | ApostropheCMS: Stored XSS via SVG SMIL URI-list scheme-policy bypass |
| CVE-2026-63670 | 2026-08-17 | 6.1 | ApostropheCMS: Mutation-XSS / allowedTags bypass via literal ` ` solidus close |
| CVE-2026-53606 | 2026-06-12 | 5.4 | sanitize-html has an incomplete URI scheme validation that allows javascript: URIs through action, formaction, data, poster, and background attributes |
| CVE-2026-44990 | 2026-06-12 | 9.3 | Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html` |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-16016, or call /api/v1/vulnerabilities/CVE-2017-16016. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.