CVE-2026-41240
Last modified
CVE-2026-41240 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
Description
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit c361baa added an early exit for FORBID_ATTR at line 1214. The same fix was not applied to FORBID_TAGS. At line 1118-1123, when EXTRA_ELEMENT_HANDLING.tagCheck returns true, the short-circuit evaluation skips the FORBID_TAGS check entirely. This allows forbidden elements to survive sanitization with their attributes intact. Version 3.4.0 patches the issue.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Cure53 | Dompurify | < 3.4.0 |
References
- https://github.com/cure53/DOMPurify/releases/tag/3.4.0Product, Release Notes
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4mExploit, Mitigation, Patch, Vendor Advisory
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4mExploit, Mitigation, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-41240?
How severe is CVE-2026-41240?
How do I fix CVE-2026-41240?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-41235Froxlor is open source server administration software. Versi…8.6
- CVE-2026-41236Froxlor is open source server administration software. Versi…8.8
- CVE-2026-41237Froxlor is open source server administration software. In ve…8.6
- CVE-2026-41238DOMPurify is a DOM-only cross-site scripting sanitizer for H…6.9
- CVE-2026-41239DOMPurify is a DOM-only cross-site scripting sanitizer for H…6.8
- CVE-2026-4124The Ziggeo plugin for WordPress is vulnerable to Missing Aut…5.4
- CVE-2026-41241pretalx is a conference planning tool. Prior to 2026.1.0, Th…5.4
- CVE-2026-41242protobufjs compiles protobuf definitions into JavaScript (JS…9.8
- CVE-2026-41243OpenLearn is open-source educational forum software. Prior t…5.4
- CVE-2026-41244Mojic is a CLI tool to transform readable C code into an unr…4.7
- CVE-2026-41245Junrar is an open source java RAR archive library. Prior to …7.5
- CVE-2026-41246Contour is a Kubernetes ingress controller using Envoy proxy…8.1
Are you affected by CVE-2026-41240?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
