CVE-2026-75838

DOMPurify before 3.4.13 Cross-Site Scripting via IN_PLACE hook

Published Aug 18, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
DOMPurify before 3.4.13 contains a cross-site scripting vulnerability in IN_PLACE sanitization where element-removal hooks fail to neutralize detached subtrees. Attackers can supply HTML with event handlers on descendant elements that execute after sanitization completes, even though the returned root appears clean.

Analysis

AI-generated

Technical impact

DOMPurify versions earlier than 3.4.13 allow an attacker to place event handler attributes on descendant elements inside HTML that is sanitized with the IN_PLACE strategy. The element‑removal hooks in DOMPurify fail to neutralize detached subtrees, so the returned root appears clean while the event handlers can still fire. This flaw permits arbitrary client‑side code execution and can lead to data theft, session hijacking, or other malicious actions in the victim’s browser. The weakness corresponds to CWE‑79, a classic Cross‑Site Scripting issue.

Affected Systems

The vulnerability affects all installations of DOMPurify from cure53 before version 3.4.13, regardless of the host platform or environment.

Risk and Exploitability

The CVSS score of 5.1 classifies the flaw as medium severity. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is client‑side injection: an attacker who can supply or influence the HTML passed to DOMPurify can trigger the flaw by embedding malicious event handlers or detached subtrees. Exploitation requires that the affected application uses the default IN_PLACE sanitization with element‑removal hooks enabled.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade DOMPurify to version 3.4.13 or later to apply the vendor patch that neutralizes detached subtrees.
  • If an upgrade is not immediately possible, avoid using the IN_PLACE sanitization mode; instead, use a safer sanitization approach or replace DOMPurify with another library that properly sanitizes all nodes.
  • Review and refactor any custom DOMPurify hooks or extensions that attach or modify elements after sanitization to ensure they do not reintroduce event handlers or detached subtrees.

Generated by OpenCVE AI on August 18, 2026 at 12:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
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
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

Type Values Removed Values Added
Description DOMPurify before 3.4.13 contains a cross-site scripting vulnerability in IN_PLACE sanitization where element-removal hooks fail to neutralize detached subtrees. Attackers can supply HTML with event handlers on descendant elements that execute after sanitization completes, even though the returned root appears clean.
Title DOMPurify before 3.4.13 Cross-Site Scripting via IN_PLACE hook
First Time appeared Cure53
Cure53 dompurify
Weaknesses CWE-79
CPEs cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
Vendors & Products Cure53
Cure53 dompurify
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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
Aug 18, 2026, 1:38 PM
Reserved
Aug 18, 2026, 10:59 AM
Status
Awaiting Analysis
Published
Aug 18, 2026, 12:19 PM
Modified
Oct 22, 2026, 10:10 PM
Severity
Important
Public date
Aug 18, 2026, 11:19 AM