{"id":"GHSA-mjjq-c88q-qhr6","aliases":["GHSA-mjjq-c88q-qhr6"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in dompurify","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T21:22:00.000Z","modified":"2021-09-29T20:13:06.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.7"}],"ecosystem":"npm","package":"dompurify","purl":"pkg:npm/dompurify","source":"ghsa"}],"references":[{"url":"https://github.com/cure53/DOMPurify","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/2.0.7","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1223","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mjjq-c88q-qhr6","url":"https://github.com/advisories/GHSA-mjjq-c88q-qhr6","licence":"CC-BY-4.0","modified":"2021-09-29T20:13:06.000Z"}],"updatedAt":"2026-11-25T22:56:45.962Z"}