# GHSA-mjjq-c88q-qhr6: Cross-Site Scripting in dompurify

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T21:22:00.000Z
- Modified: 2021-09-29T20:13:06.000Z
- Weaknesses: CWE-79

## 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.


## Recommendation

Upgrade to version 2.0.7 or later.

(As written by GitHub Advisory Database.)

## Affected

- dompurify (npm): before 2.0.7

## References

- <https://github.com/cure53/DOMPurify> (package)
- <https://github.com/cure53/DOMPurify/releases/tag/2.0.7> (web)
- <https://www.npmjs.com/advisories/1223> (web)

## Sources

- GitHub Advisory Database: [GHSA-mjjq-c88q-qhr6](https://github.com/advisories/GHSA-mjjq-c88q-qhr6), CC-BY-4.0, modified 2021-09-29

---

Page: https://cve.day/GHSA-mjjq-c88q-qhr6 · Whole record: https://cve.day/GHSA-mjjq-c88q-qhr6.json · Rebuilt by cve.day 2026-11-25T22:56:45.962Z
