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-49978: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-49978cvecve-2026-49978cwe-79
Published: 07/14/2026 (07/14/2026, 20:02:46 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: DOMPurify

Description

DOMPurify versions prior to 3.4.7 contain a cross-site scripting (XSS) vulnerability where the IN_PLACE sanitization method can skip shadow DOM contents inside <template>.content. This allows attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to persist and execute when sanitized templates are cloned and inserted. The issue is fixed in version 3.4.7.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Affected software

dompurify
pkg:npm/dompurify
Affected versions
<3.4.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/14/2026, 20:54:49 UTC

Technical Analysis

DOMPurify is a sanitizer for HTML, MathML, and SVG that prevents XSS attacks. Versions before 3.4.7 have a vulnerability in the IN_PLACE sanitization process that can omit sanitizing shadow DOM content attached to elements inside <template>.content. This flaw allows malicious code to survive sanitization and execute in the context of the application when the sanitized template is cloned and inserted into the DOM. The vulnerability is identified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The fix was introduced in version 3.4.7.

Potential Impact

An attacker can inject malicious scripts or event handlers that bypass sanitization and execute in the victim's browser, potentially leading to cross-site scripting attacks. This can compromise user data, session tokens, or perform unauthorized actions within the affected web application. The CVSS 4.0 score is 6.3 (medium severity), indicating a moderate risk with network attack vector and no privileges required but user interaction needed.

Mitigation Recommendations

Upgrade DOMPurify to version 3.4.7 or later, where this vulnerability is fixed. No other mitigation is specified or required as the issue is resolved in the official patch.

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-06-02T18:30:51.281Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a569d1f68715ace43280dab

Added to database: 07/14/2026, 20:33:35 UTC

Last enriched: 07/14/2026, 20:54:49 UTC

Last updated: 07/14/2026, 21:04:55 UTC

Views: 3

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