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…

CVE-2026-41239: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-41239cvecve-2026-41239cwe-79cwe-1289
Published: Thu Apr 23 2026 (04/23/2026, 14:47:56 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: DOMPurify

Description

CVE-2026-41239 is a cross-site scripting (XSS) vulnerability in DOMPurify versions from 1. 0. 10 up to but not including 3. 4. 0. The issue arises because the SAFE_FOR_TEMPLATES option strips {{... }} expressions only in string mode but fails to do so when using RETURN_DOM or RETURN_DOM_FRAGMENT modes. This allows XSS attacks in template-evaluating frameworks such as Vue 2. The vulnerability is addressed in version 3. 4.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/23/2026, 22:36:11 UTC

Technical Analysis

DOMPurify is a sanitizer designed to prevent XSS by cleaning HTML, MathML, and SVG content. Versions >=1.0.10 and <3.4.0 have a flaw in the SAFE_FOR_TEMPLATES feature: it removes template expressions ({{...}}) only when sanitizing strings, but not when returning DOM nodes or fragments. This inconsistency permits injection of malicious scripts in frameworks that evaluate templates, enabling cross-site scripting attacks. The issue is fixed in version 3.4.0.

Potential Impact

Successful exploitation can lead to high impact on confidentiality and integrity by executing arbitrary scripts in the context of the vulnerable web application. This can result in theft of sensitive information or session hijacking. The CVSS score is 6.8 (medium severity), reflecting network attack vector, high complexity, no privileges required, user interaction needed, and high impact on confidentiality and integrity.

Mitigation Recommendations

Upgrade DOMPurify to version 3.4.0 or later, where this vulnerability is patched. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated in the vendor advisory, but the description confirms version 3.4.0 addresses the issue.

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
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69ea9e7b87115cfb686fc58b

Added to database: 4/23/2026, 10:34:35 PM

Last enriched: 4/23/2026, 10:36:11 PM

Last updated: 4/24/2026, 7:18:38 AM

Views: 5

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