{"id":"GHSA-hfj4-96f7-6r5g","summary":"Cross-Site Scripting in html-janitor","details":"Versions of `html-janitor` prior to 2.0.2 (all current versions) are vulnerable to cross-site scripting (XSS).\n\nThis is exploitable if user-controlled data is passed into the modules `clean()` function.\n\n\n## Recommendation\n\nNo fix is currently available for this vulnerability. It is recommended to use an alternative module for HTML sanitization.","aliases":["CVE-2017-0931"],"modified":"2023-11-08T03:58:41.349672Z","published":"2018-11-09T17:49:11Z","database_specific":{"github_reviewed_at":"2020-06-16T21:39:59Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-0931"},{"type":"WEB","url":"https://github.com/guardian/html-janitor/issues/34"},{"type":"WEB","url":"https://hackerone.com/reports/308155"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hfj4-96f7-6r5g"},{"type":"WEB","url":"https://www.npmjs.com/advisories/576"}],"affected":[{"package":{"name":"html-janitor","ecosystem":"npm","purl":"pkg:npm/html-janitor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-hfj4-96f7-6r5g/GHSA-hfj4-96f7-6r5g.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}