CVE-2026-65901

DOMPurify 3.4.6 Cross-Site Scripting via IN_PLACE nodeName

Published Jul 23, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 23, 2026, 1:39 PM
Reserved
Jul 23, 2026, 11:03 AM
Status
Analyzed
Published
Jul 23, 2026, 2:18 PM
Modified
Oct 24, 2026, 1:10 PM