Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 96%

CVE-2026-41240: CWE-183: Permissive List of Allowed Inputs in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-41240cvecve-2026-41240cwe-183cwe-79
Published: Thu Apr 23 2026 (04/23/2026, 14:54:32 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: DOMPurify

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.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/23/2026, 17:51:09 UTC

Technical Analysis

DOMPurify is a sanitizer designed to prevent cross-site scripting by cleaning HTML, MathML, and SVG inputs. In versions before 3.4.0, an inconsistency exists in how forbidden tags and attributes are processed: an early exit was added for forbidden attributes but not for forbidden tags, causing the FORBID_TAGS check to be skipped under certain conditions. This permits forbidden elements to survive sanitization with their attributes, potentially enabling injection of malicious content. The vulnerability is tracked as CVE-2026-41240 and was addressed in version 3.4.0.

Potential Impact

The vulnerability allows forbidden HTML elements to bypass sanitization and remain in the output with their attributes intact, increasing the risk of cross-site scripting (XSS) attacks. This can lead to execution of malicious scripts in the context of the affected application, potentially compromising user data or session integrity. The CVSS 4.0 score is 6.0 (medium severity), reflecting network attack vector, low attack complexity, partial attack complexity, no privileges required, user interaction required, and high impact on integrity.

Mitigation Recommendations

Upgrade to DOMPurify version 3.4.0 or later, where this issue is fixed. There is no official patch or temporary fix other than upgrading. Users should verify that their sanitization configurations do not rely on the vulnerable behavior and ensure that FORBID_TAGS is properly enforced by using the patched version.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-18T03:47:03.135Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69ea588387115cfb683b9248

Added to database: 4/23/2026, 5:36:03 PM

Last enriched: 4/23/2026, 5:51:09 PM

Last updated: 6/7/2026, 10:19:46 PM

Views: 95

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses