Description
DOMPurify through 3.4.6 contains a cross-site scripting vulnerability in IN_PLACE mode that trusts attacker-controlled nodeName on live non-form nodes. Attackers can supply hostile live DOM objects with real script children whose observable nodeName is clobbered to appear as allowed elements, causing scripts to execute when the sanitized tree is inserted into a live document.
Published: 2026-07-23
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The CVE describes a cross‑site scripting flaw in DOMPurify when operating in IN_PLACE mode. The sanitizer mistakenly trusts attacker‑controlled nodeName values on live non‑form nodes, allowing an external actor to craft a live DOM object whose nodeName is altered to appear as an allowed element. When the sanitized tree is inserted into the live document, the embedded script executes, giving the attacker code‑execution capability in the user’s context. The weakness maps to input validation and output encoding failure (CWE‑79).

Affected Systems

The vulnerability affects the DOMPurify library maintained by cure53. Specifically, usage of DOMPurify version 3.4.6 that renders live DOM objects via IN_PLACE mode is susceptible. No other vendors or products are listed in the CNA impacted set.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. The EPSS score is below 1 %, suggesting a low probability of exploitation in the wild at this time. The vulnerability is not listed in the CISA KEV catalog. Attackers would need to supply a crafted live DOM object to the sanitizer, which generally requires some level of access to the application’s input. If the site renders untrusted HTML using IN_PLACE mode, an exploitation path exists that can execute arbitrary client‑side code.

Generated by OpenCVE AI on August 3, 2026 at 21:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DOMPurify to the latest available version that contains the fix (≥3.4.7).
  • Avoid passing live DOM nodes to the sanitizer; use static strings or detached nodes instead.
  • If IN_PLACE mode is required, restrict its use to trusted content and enable strict CSP to mitigate accidental script injection.

Generated by OpenCVE AI on August 3, 2026 at 21:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-x4vx-rjvf-j5p4 DOMPurify: `IN_PLACE` mode trusts attacker-controlled `nodeName` on live non-form nodes, allowing script retention and XSS via attacker-supplied DOM objects
History

Thu, 23 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Description DOMPurify through 3.4.6 contains a cross-site scripting vulnerability in IN_PLACE mode that trusts attacker-controlled nodeName on live non-form nodes. Attackers can supply hostile live DOM objects with real script children whose observable nodeName is clobbered to appear as allowed elements, causing scripts to execute when the sanitized tree is inserted into a live document.
Title DOMPurify 3.4.6 Cross-Site Scripting via IN_PLACE nodeName
First Time appeared Cure53
Cure53 dompurify
Weaknesses CWE-79
CPEs cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
Vendors & Products Cure53
Cure53 dompurify
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Cure53 Dompurify
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-23T13:39:31.433Z

Reserved: 2026-07-23T11:03:13.092Z

Link: CVE-2026-65901

cve-icon Vulnrichment

Updated: 2026-07-23T13:38:58.451Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-23T14:18:05.000

Modified: 2026-07-28T15:52:12.423

Link: CVE-2026-65901

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:45:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')