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

0
Medium
VulnerabilityCVE-2026-49459cvecve-2026-49459cwe-79cwe-693cwe-1321
Published: 07/14/2026 (07/14/2026, 20:01:44 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: DOMPurify

Description

DOMPurify versions prior to 3.4.6 contain a cross-site scripting (XSS) vulnerability when using DOMPurify.sanitize with the IN_PLACE option on a root <form> element. This flaw allows preservation of event-handler attributes on an attacker-controlled root due to improper handling of clobbered properties, potentially leading to XSS. The issue is fixed in version 3.4.6.

CVSS v3.1

Score 6.1medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected software

dompurify
pkg:npm/dompurify
Affected versions
<3.4.6

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:58 UTC

Technical Analysis

DOMPurify is a sanitizer for HTML, MathML, and SVG to prevent XSS. Before version 3.4.6, using DOMPurify.sanitize(root, { IN_PLACE: true }) on a <form> root element could preserve event-handler attributes if a descendant element's name clobbered properties checked by the internal _isClobbered function. This occurred because _forceRemove did not operate on the parent-less root and _sanitizeAttributes returned early, allowing malicious event handlers to remain. This vulnerability is addressed in DOMPurify 3.4.6.

Potential Impact

An attacker controlling the root <form> element could inject event-handler attributes that are not removed, enabling cross-site scripting attacks. This can lead to limited confidentiality and integrity impacts via script execution in the context of the affected web page. The CVSS score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and low confidentiality and integrity impact.

Mitigation Recommendations

Upgrade DOMPurify to version 3.4.6 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Users should avoid using vulnerable versions with the IN_PLACE option on root <form> elements until patched.

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-05-30T02:43:33.107Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a569d1f68715ace43280da6

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

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

Last updated: 07/14/2026, 21:04:53 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