# CVE-2026-41238: DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM\_ELEMENT\_HANDLING Fallback

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, 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-23
- Aliases: UBUNTU-CVE-2026-41238, DEBIAN-CVE-2026-41238, CGA-5428-5wcm-3wrc, CGA-hf26-2g56-fwxj, CGA-qfh8-c43q-9pgg, CGA-v4x2-838f-hf95, GHSA-v9jr-rg53-9pgp, CGA-243w-fcwr-v557, CGA-2ff9-27jf-9mw5, CGA-2h8w-5fhh-m73x, CGA-2q8x-x2fv-v59h, CGA-3x37-wc47-x735, CGA-426f-3fj4-5gwp, CGA-47g2-62f8-qprw, CGA-4gw3-w68r-7rjp, CGA-4rvg-x5wm-67h6, CGA-58xw-2fc4-7rf6, CGA-5c33-4php-54h9, CGA-5r48-pjxr-xx87, CGA-5x38-x9fm-7c9p, CGA-62rc-8ccq-q823, CGA-65x6-hr33-wwq2, CGA-6c6r-9gpr-mqjr, CGA-6cx9-gvwh-g3pm, CGA-6f6g-mmh3-hvg8, CGA-6gm9-qj3r-gmmv, CGA-6pf9-8ghj-wh6x, CGA-6q62-f5pv-246q, CGA-6vcp-2jwm-88wh, CGA-6xfx-p3gm-8h62, CGA-7294-mqcc-3984, CGA-72wc-56hh-gpj5, CGA-753g-gwhw-4432, CGA-79xq-24p6-8cpm, CGA-8jqh-62rw-rwc3, CGA-92f8-gwh3-8gw4, CGA-9j3q-3rcw-p4jf, CGA-c7x3-mgh4-q56p, CGA-cjhj-9gfm-rc5p, CGA-cq8p-cvww-6cjx, CGA-crv6-qvgg-f938, CGA-cx9p-xpjp-9xpx, CGA-f5q5-h844-9mgf, CGA-fv8g-ggcm-hx7m, CGA-g23p-2326-jmwj, CGA-g327-35pj-m5qp, CGA-g874-x9r8-669p, CGA-gmw2-79jq-h6v7, CGA-gqr8-mxrx-w223, CGA-gw77-4xqc-36qm, CGA-hw77-4jm7-c23p, CGA-jf6j-j4v5-m248, CGA-jgmf-9fh9-g4v2, CGA-jwc3-g9j2-36pm, CGA-mc5p-x8mh-h8hm, CGA-mfgq-5hqv-9fcf, CGA-mvp3-jc86-ggrv, CGA-p22r-2fm4-pg89, CGA-p3v3-3g2g-v9r4, CGA-p8q3-6pcc-4rq7, CGA-pmmh-7v59-35ch, CGA-ppw2-v479-97g3, CGA-pxhv-8hc9-jprf, CGA-pxjv-j4wr-35rq, CGA-qjcp-mvhx-7wq6, CGA-qw26-hr47-h3qg, CGA-r23m-455x-4x9q, CGA-r2g9-3734-hrjx, CGA-r3wp-j9hv-v8mh, CGA-rpcv-xw2h-hqw9, CGA-v3g7-qrc2-4ffw, CGA-vf9c-m9m6-h2q7, CGA-w567-3pc6-m63h, CGA-wg48-r2vx-pg7f, CGA-whqg-x8wr-hxx8, CGA-x3f4-9gwp-vvgp, CGA-x68w-9hx8-m3h8, CGA-xcq8-mf98-h82v, CGA-xhhw-8h4c-hpv7, CGA-xjcj-627p-6pjq, CGA-xjgp-5882-gmpw
- Record: https://cvemate.com/vulnerability/CVE-2026-41238 · JSON: https://cvemate.com/vulnerability/CVE-2026-41238/json

## Description

```text
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions 3.0.1 through 3.3.3 are vulnerable to a prototype pollution-based XSS bypass. When an application uses `DOMPurify.sanitize()` with the default configuration (no `CUSTOM_ELEMENT_HANDLING` option), a prior prototype pollution gadget can inject permissive `tagNameCheck` and `attributeNameCheck` regex values into `Object.prototype`, causing DOMPurify to allow arbitrary custom elements with arbitrary attributes — including event handlers — through sanitization. Version 3.4.0 fixes the issue.
```

## Signals

- CVSS: 6.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
- EPSS: 0.28%, percentile 21.889%, 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-v9jr-rg53-9pgp>
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.0>
- <https://ubuntu.com/security/CVE-2026-41238>
- <https://www.cve.org/CVERecord?id=CVE-2026-41238>
- <https://security-tracker.debian.org/tracker/CVE-2026-41238>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41238.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41238>
- <https://github.com/cure53/DOMPurify>

---

Data as of 2026-12-05T13:05:56.042Z. 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
