CVE-2026-109345

DOMPurify before 3.4.16 XSS via IN_PLACE Returned Rawtext Root

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

Analysis

AI-generated

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

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

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 5:40 PM
Reserved
Oct 12, 2026, 2:19 PM
Status
Awaiting Analysis
Published
Oct 12, 2026, 5:17 PM
Modified
Oct 16, 2026, 5:27 PM
Severity
Moderate
Public date
Oct 12, 2026, 4:05 PM