{"id":"CVE-2017-16017","aliases":["EUVD-2018-0784","GHSA-wg96-3933-j2w5"],"status":"published","title":"Cross-Site Scripting in sanitize-html","description":"sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01167,"percentile":0.67521,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2018-06-04T19:00:00Z","modified":"2026-06-17T01:08:38Z","fixes":[{"ecosystem":"npm","package":"sanitize-html","fixed_in":["1.2.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"sanitize-html","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.3"}]}]},{"source":"osv","ecosystem":"npm","package":"sanitize-html","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.3"}]}]}],"products":[{"vendor":"hackerone","product":"sanitize-html node module"},{"vendor":"punkave","product":"sanitize-html"}],"references":[{"url":"https://github.com/punkave/sanitize-html/pull/20","tags":["x_refsource_MISC","x_transferred","Issue Tracking","web"]},{"url":"https://nodesecurity.io/advisories/155","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://github.com/punkave/sanitize-html/issues/19","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16017","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wg96-3933-j2w5","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/155","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16017","description":"sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T01:40:49.487Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:33:21.453505Z"}],"euvd":[{"id":"EUVD-2018-0784","description":"sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T01:40:49Z","updated_at":"2026-11-03T00:28:47.497259Z"}],"ghsa":[{"id":"GHSA-wg96-3933-j2w5","title":"Cross-Site Scripting in sanitize-html","description":"Affected versions of `sanitize-html` are vulnerable to cross-site scripting.\n\n## Proof of Concept:\n\n`\u003cIMG SRC= onmouseover=\"alert('XSS');\"\u003e`\nproduces the following:\n\n`\u003cimg src=\"onmouseover=\"alert('XSS');\"\" /\u003e`\nThis is definitely invalid HTML, but would suggest that it's being interpreted incorrectly by the parser.\n\n\n## Recommendation\n\nUpdate to version 1.2.3 or later.","status":"published","published":"2018-11-09T17:45:55Z","modified":"2023-09-08T23:10:16Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:03.916765Z"}],"nvd":[{"id":"CVE-2017-16017","description":"sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.","status":"published","published":"2018-06-04T19:29:01.083Z","modified":"2026-06-17T01:08:38.91Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:04:17.638656Z"}],"osv":[{"id":"GHSA-wg96-3933-j2w5","title":"Cross-Site Scripting in sanitize-html","description":"Affected versions of `sanitize-html` are vulnerable to cross-site scripting.\n\n## Proof of Concept:\n\n`\u003cIMG SRC= onmouseover=\"alert('XSS');\"\u003e`\nproduces the following:\n\n`\u003cimg src=\"onmouseover=\"alert('XSS');\"\" /\u003e`\nThis is definitely invalid HTML, but would suggest that it's being interpreted incorrectly by the parser.\n\n\n## Recommendation\n\nUpdate to version 1.2.3 or later.","status":"published","published":"2018-11-09T17:45:55Z","modified":"2023-11-08T03:58:59.888864Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:58.767335Z"}]}}
