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.3%top 74%

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 is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This 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/21/2026, 21:16:29 UTC

Technical Analysis

DOMPurify is a sanitizer for HTML, MathML, and SVG to prevent XSS attacks. Versions before 3.4.7 have a vulnerability in the IN_PLACE sanitization method that can omit sanitizing shadow DOM contents attached inside <template>.content elements. This omission allows malicious markup, including event handlers, JavaScript URLs, or scripts, to persist and execute in the context of the application when the sanitized template is cloned and inserted into the DOM. The vulnerability is addressed by the fix in version 3.4.7.

Potential Impact

An attacker can inject malicious scripts or event handlers that survive sanitization and execute in the victim's browser, potentially leading to cross-site scripting attacks. This can result in unauthorized script execution, data theft, or other client-side impacts. The CVSS 4.0 score is 6.3 (medium severity), indicating a moderate risk without requiring privileges or user interaction beyond viewing the affected content.

Mitigation Recommendations

Upgrade DOMPurify to version 3.4.7 or later, where this vulnerability is fixed. No other mitigation is indicated 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/21/2026, 21:16:29 UTC

Last updated: 08/27/2026, 22:52:12 UTC

Views: 82

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