# CVE-2026-41239: DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-04-22T17:32:54.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-crv5-9vww-q3g8
- Weaknesses: CWE-79, CWE-1289
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Starting in version 1.0.10 and prior to version 3.4.0, `SAFE_FOR_TEMPLATES` strips `{{...}}` expressions from untrusted HTML. This works in string mode but not with `RETURN_DOM` or `RETURN_DOM_FRAGMENT`, allowing XSS via template-evaluating frameworks like Vue 2. Version 3.4.0 patches the issue.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: >= 1.0.10, < 3.4.0
- dompurify (npm): from 1.0.10 before 3.4.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8> (web)
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41239> (advisory)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2026-41239](https://www.cve.org/CVERecord?id=CVE-2026-41239), CVE Terms of Use, modified 2026-04-25
- GitHub Advisory Database: [GHSA-crv5-9vww-q3g8](https://github.com/advisories/GHSA-crv5-9vww-q3g8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41239](https://nvd.nist.gov/vuln/detail/CVE-2026-41239), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41239 · Whole record: https://cve.day/CVE-2026-41239.json · Rebuilt by cve.day 2026-11-25T22:59:19.393Z
