Description
DOMPurify before 3.4.16 contains a cross-site scripting vulnerability that allows attackers to bypass sanitization because IN_PLACE mode returns a force-removed style element whose text content still carries markup. Attackers can supply a style element containing a closing style tag and an img onerror payload, which executes script when the application serializes and re-parses the returned node.
Published: 2026-10-12
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting (client‑side code execution)
Action: Patch
AI Analysis

Impact

DOMPurify before version 3.4.16 contains a cross‑site scripting weakness that defeats the library’s sanitization logic. In IN_PLACE mode the library returns a DOM node that has had style elements force‑removed, but the raw text content of those elements remains in the node. An attacker can craft a style element that ends the style tag early and inserts an image tag with an onerror handler. When the sanitized node is later serialized and parsed by the application, the onerror payload is executed, inserting arbitrary JavaScript into the victim’s browser.

Affected Systems

The flaw impacts any installation that uses the open‑source DOMPurify library from cure53 prior to version 3.4.16 and employs the IN_PLACE mode of sanitization. Web applications that accept user‑supplied content, sanitize it with DOMPurify and then re‑serialize or re‑parse the result are at risk. All releases of DOMPurify before 3.4.16 are considered vulnerable unless the library is disabled or patched.

Risk and Exploitability

The vulnerability scores a moderate CVSS of 5.1, and no EPSS information is available, so the current exploitation probability is not quantifiable. It is not listed in the CISA KEV catalog, implying no known public exploitation yet. The attack requires the application to re‑serialize or re‑parse the sanitized node, meaning an attacker must supply suitable input that passes the initial sanitization. When this condition is satisfied, arbitrary client‑side code can run, potentially compromising user sessions, leaking data, or defacing the site.

Generated by OpenCVE AI on October 12, 2026 at 18:30 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update DOMPurify to version 3.4.16 or later to eliminate the XSS flaw.
  • Re‑evaluate application code that uses IN_PLACE mode; if an upgrade cannot be performed immediately, disable IN_PLACE mode or configure the library to drop style elements completely.
  • Ensure that sanitized nodes are not serialized and parsed again before being served; if re‑parsing is unavoidable, re‑apply DOMPurify after re‑parsing to strip remaining onerror handlers.

Generated by OpenCVE AI on October 12, 2026 at 18:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 13 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 12 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Description DOMPurify before 3.4.16 contains a cross-site scripting vulnerability that allows attackers to bypass sanitization because IN_PLACE mode returns a force-removed style element whose text content still carries markup. Attackers can supply a style element containing a closing style tag and an img onerror payload, which executes script when the application serializes and re-parses the returned node.
Title DOMPurify before 3.4.16 XSS via IN_PLACE Returned Rawtext Root
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-10-13T17:40:08.757Z

Reserved: 2026-10-12T14:19:01.653Z

Link: CVE-2026-109345

cve-icon Vulnrichment

Updated: 2026-10-13T17:40:00.615Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-12T17:17:31.217

Modified: 2026-10-16T17:27:24.847

Link: CVE-2026-109345

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-12T16:05:29Z

Links: CVE-2026-109345 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-12T21:00:14Z

Weaknesses
  • CWE-79

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