{"schema_version":"1.9.0","id":"GHSA-wg96-3933-j2w5","published":"2018-11-09T17:45:55Z","modified":"2023-11-08T03:58:59.888864Z","aliases":["CVE-2017-16017"],"summary":"Cross-Site Scripting in sanitize-html","details":"Affected versions of `sanitize-html` are vulnerable to cross-site scripting.\n\n## Proof of Concept:\n\n`<IMG SRC= onmouseover=\"alert('XSS');\">`\nproduces the following:\n\n`<img src=\"onmouseover=\"alert('XSS');\"\" />`\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.","affected":[{"package":{"name":"sanitize-html","ecosystem":"npm","purl":"pkg:npm/sanitize-html"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-wg96-3933-j2w5/GHSA-wg96-3933-j2w5.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16017"},{"type":"WEB","url":"https://github.com/punkave/sanitize-html/issues/19"},{"type":"WEB","url":"https://github.com/punkave/sanitize-html/pull/20"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wg96-3933-j2w5"},{"type":"WEB","url":"https://www.npmjs.com/advisories/155"}],"database_specific":{"cwe_ids":["CWE-79"],"github_reviewed":true,"github_reviewed_at":"2020-06-16T22:00:25Z","nvd_published_at":null,"severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}