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.
Published: 2026-08-18
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Thu, 27 Aug 2026 18:00:00 +0000

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


Tue, 18 Aug 2026 11:30:00 +0000

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


Subscriptions

Cure53 Dompurify
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T13:38:34.515Z

Reserved: 2026-08-18T10:59:33.701Z

Link: CVE-2026-75838

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T12:19:34.050

Modified: 2026-08-18T14:18:11.220

Link: CVE-2026-75838

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-18T11:19:47Z

Links: CVE-2026-75838 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T15:00:05Z

Weaknesses
  • CWE-79

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