{"id":"GHSA-mjjq-c88q-qhr6","aliases":[],"status":"published","title":"Cross-Site Scripting in dompurify","description":"Versions of `dompurify` prior to 2.0.7 are vulnerable to Cross-Site Scripting (XSS). It is possible to bypass the package sanitization through Mutation XSS, which may allow an attacker to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 2.0.7 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-03T21:22:00Z","modified":"2023-01-09T05:04:08Z","fixes":[{"ecosystem":"npm","package":"dompurify","fixed_in":["2.0.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"dompurify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7"}]}]},{"source":"osv","ecosystem":"npm","package":"dompurify","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.7"}]}]}],"references":[{"url":"https://github.com/cure53/DOMPurify/releases/tag/2.0.7","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1223","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mjjq-c88q-qhr6"},{"url":"https://github.com/cure53/DOMPurify","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-mjjq-c88q-qhr6","title":"Cross-Site Scripting in dompurify","description":"Versions of `dompurify` prior to 2.0.7 are vulnerable to Cross-Site Scripting (XSS). It is possible to bypass the package sanitization through Mutation XSS, which may allow an attacker to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 2.0.7 or later.","status":"published","published":"2020-09-03T21:22:00Z","modified":"2023-01-09T05:04:08Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:08.863482Z"}],"osv":[{"id":"GHSA-mjjq-c88q-qhr6","title":"Cross-Site Scripting in dompurify","description":"Versions of `dompurify` prior to 2.0.7 are vulnerable to Cross-Site Scripting (XSS). It is possible to bypass the package sanitization through Mutation XSS, which may allow an attacker to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 2.0.7 or later.","status":"published","published":"2020-09-03T21:22:00Z","modified":"2021-09-29T20:13:06Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:51.811331Z"}]}}
