{"id":"GHSA-wg96-3933-j2w5","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`\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.","aliases":["CVE-2017-16017"],"modified":"2023-11-08T03:58:59.888864Z","published":"2018-11-09T17:45:55Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T22:00:25Z","nvd_published_at":null,"cwe_ids":["CWE-79"]},"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"}],"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}