CVE-2026-41238cure53 DOMPurify
Medium 6.9 No auth needed
Follow: this CVE · cure53 · cure53 DOMPurify We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 3.1
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Apr 23, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for DOMPurify.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | dompurify |
≥ 3.0.1 < 3.4.0 |
3.4.0 |
npm install dompurify@3.4.0 |
Per OSV / GitHub Advisories (GHSA-v9jr-rg53-9pgp). Check the version in your lockfile before upgrading.
Affected products
- cure53 · DOMPurify
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.