CVE-2017-16016 json
Cross-Site Scripting in sanitize-html
published 2018-06-04 8 y ago modified 2026-06-17 4 mo ago also GHSA-xc6g-ggrc-qq4r , EUVD-2018-0787
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm sanitize-html 1.11.4
Exploit prediction
1.34% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- nodesecurity.io https://nodesecurity.io/advisories/154 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/punkave/sanitize-html/issues/100 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | sanitize-html | <1.11.4 |
1.11.4 |
Affected products
- HackerOne sanitize-html node module
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/punkave/sanitize-html/commit/5d205a1005ba0df80e21d8c64a15bb3accdb2403
web, patch
-
github.com
/punkave/sanitize-html/commit/5d205a1005ba0df80e21d8c64a15bb3accdb2403)))
web
-
nodesecurity.io
/advisories/154
exploit, third-party-advisory
-
github.com
/punkave/sanitize-html/issues/100
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-16016
advisory
-
github.com
/advisories/GHSA-xc6g-ggrc-qq4r
advisory
-
npmjs.com
/package/sanitize-html#discarding-the-entire-contents-of-a-disallowed-tag
web
-
npmjs.com
/advisories/154
web
Sources
- CVE List CVE-2017-16016
- GitHub Advisory GHSA-xc6g-ggrc-qq4r
- NVD CVE-2017-16016
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.