CVE-2017-16017
MEDIUM 6.1CVSS 3.0Cross-Site Scripting in sanitize-html
sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.
- Published
- 4 Jun 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-wg96-3933-j2w5
- Sources
- NVDJSONOSV GHSA-wg96-3933-j2w5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | punkave | sanitize-htmlcpe:2.3:a:punkave:sanitize-html:*:*:*:*:*:node.js:*:* |
<= 1.2.2 | |
| OSV | npm | sanitize-html | < 1.2.3 | 1.2.3 |
References
- https://github.com/punkave/sanitize-html/issues/19 · Exploit, Third Party Advisory, WEB
- https://github.com/punkave/sanitize-html/pull/20 · Issue Tracking, WEB
- https://nodesecurity.io/advisories/155 · Exploit, Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-16017 · ADVISORY
- https://github.com/advisories/GHSA-wg96-3933-j2w5 · ADVISORY
- https://www.npmjs.com/advisories/155 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 4 Jun 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Nov 2018)