# CVE-2026-41239: DOMPurify has a SAFE\_FOR\_TEMPLATES bypass in RETURN\_DOM mode

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-23 · Modified: 2026-04-25
- Aliases: UBUNTU-CVE-2026-41239, DEBIAN-CVE-2026-41239, CGA-2j53-v6x9-7hv9, CGA-8cpx-9wg5-p2vq, CGA-rh75-w6mj-6xc8, CGA-xw5w-ff45-qqv4, GHSA-crv5-9vww-q3g8, CGA-22x8-qf3m-4r5x, CGA-23j7-87f3-hxj8, CGA-26x9-jgfp-fx7h, CGA-2787-2wq5-wfxv, CGA-2f6j-8h89-27rv, CGA-2gr4-w7jh-3x76, CGA-2jf8-v87h-7x29, CGA-2v34-2pwj-pc74, CGA-34jm-qj5v-jx92, CGA-34v2-v3x3-x2p4, CGA-383v-9rxx-75v2, CGA-4725-m9cr-rcfc, CGA-4cr8-4vrx-g7qf, CGA-4h8w-xhv5-33j7, CGA-4wwq-fx84-q9p6, CGA-5226-xpfq-qx44, CGA-523f-f3w9-96m9, CGA-53v3-g8q7-vwcm, CGA-58ph-j4xg-fp3v, CGA-596q-fwxc-m88w, CGA-5jmw-mp8r-r885, CGA-62p4-w8x2-gg2r, CGA-6cvj-rc7r-9vp8, CGA-6fcv-h7mr-g774, CGA-75vm-hwc2-7ghp, CGA-7753-3vm5-5hpj, CGA-78p6-jcx2-fxmp, CGA-7fj3-mvgc-636g, CGA-84jp-jm3x-r27j, CGA-87m5-phrr-xq2j, CGA-8pp6-j9j5-489p, CGA-939f-2x22-mv6f, CGA-9769-3xjf-mgrf, CGA-99cc-jxvj-v332, CGA-c3mx-jc29-jwgc, CGA-cpp9-2356-q76v, CGA-cxfj-v33g-fpx7, CGA-f5j5-3g65-pjmj, CGA-gq68-xj8g-r5m4, CGA-grpw-xrp7-5qgr, CGA-hh8f-h5qc-ppqp, CGA-hmc6-mf37-rw5c, CGA-hq42-f93p-qj8j, CGA-hqrc-mqxq-jhvj, CGA-j2f2-xh7r-ffwj, CGA-j8j4-mj37-3r9q, CGA-jhfw-v23p-mg6x, CGA-jpvw-2xfg-w8xc, CGA-m5mj-4pp7-gqqm, CGA-mj9w-j7jm-3q7x, CGA-mm25-5pjw-262f, CGA-mpwr-rh3h-w6xc, CGA-pjmp-4wm8-gj3g, CGA-pm6r-35rj-7fx4, CGA-pqvc-3fv3-5g38, CGA-q6gm-2973-xj3g, CGA-q8j9-qj54-f62h, CGA-qgq4-h53q-742q, CGA-qhhg-wqv4-9f97, CGA-qv36-6cfv-m4cg, CGA-qvwj-8x9v-mjv6, CGA-qw9q-c3h9-h7jv, CGA-qw9r-j6cw-r2f8, CGA-r567-jgr6-wj6h, CGA-r8r4-2j8h-9fwr, CGA-rqwg-c428-j6r7, CGA-v5q9-6wq7-fj75, CGA-v862-3xqw-cc4g, CGA-vjpm-rgfr-v74v, CGA-vv5q-956j-244m, CGA-w4c2-r6qm-7j7v, CGA-x4vf-3mpp-539g, CGA-x8g4-rjc4-r67j, CGA-xm28-f6wf-pvgc
- Record: https://cvemate.com/vulnerability/CVE-2026-41239 · JSON: https://cvemate.com/vulnerability/CVE-2026-41239/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- EPSS: 0.258%, percentile 18.592%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 41)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.12-r2
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8
- chainguard langfuse-fips-3 (Chainguard): \< 3.164.0-r6
- chainguard langfuse-fips-3-worker (Chainguard): \< 3.164.0-r6

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8>
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.0>
- <https://ubuntu.com/security/CVE-2026-41239>
- <https://www.cve.org/CVERecord?id=CVE-2026-41239>
- <https://security-tracker.debian.org/tracker/CVE-2026-41239>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41239.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41239>
- <https://github.com/cure53/DOMPurify>

---

Data as of 2026-12-05T13:05:22.811Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
