{"id":"GHSA-fx46-whrj-73v5","summary":"Bypassing Sanitization using DOM clobbering in html-janitor","details":"All versions of `html-janitor` are vulnerable to cross-site scripting (XSS).\n\nArbitrary HTML can pass the sanitization process, which can be unexpected and dangerous (XSS) in case user-controlled input is passed to the clean function.\"\n\n\n## Recommendation\n\nUpgrade to version 2.0.4 or later.","aliases":["CVE-2017-0928"],"modified":"2023-11-08T03:58:41.166526Z","published":"2018-07-24T20:06:17Z","database_specific":{"github_reviewed_at":"2020-06-16T21:35:41Z","nvd_published_at":null,"cwe_ids":["CWE-547","CWE-642"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-0928"},{"type":"WEB","url":"https://github.com/guardian/html-janitor/issues/35"},{"type":"WEB","url":"https://hackerone.com/reports/308158"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fx46-whrj-73v5"},{"type":"WEB","url":"https://www.npmjs.com/advisories/569"}],"affected":[{"package":{"name":"html-janitor","ecosystem":"npm","purl":"pkg:npm/html-janitor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c 2.0.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-fx46-whrj-73v5/GHSA-fx46-whrj-73v5.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"}]}