6.1med

CVE-2017-16016

Cross-Site Scripting in sanitize-html

Also known as GHSA-xc6g-ggrc-qq4r

Published 8 y ago · modified 4 mo ago · JSON

CVSS
6.1
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.3%
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.

Exploit prediction (EPSS)

1.34% probability of exploitation in the next 30 days, higher than 71% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.06.1CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD2.04.3AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected packages

EcosystemPackageAffectedFixed in
npmsanitize-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

  • nodesecurity.io /advisories/154 · x_refsource_MISC, x_transferred
  • github.com /punkave/sanitize-html/issues/100 · x_refsource_MISC, x_transferred
  • github.com /punkave/sanitize-html/commit/5d205a1005ba0df80e21d8c64a15bb3accdb2403 · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2017-16016 · advisory
  • github.com /punkave/sanitize-html/commit/5d205a1005ba0df80e21d8c64a15bb3accdb2403))) · web
  • 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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.