---
id: CVE-2026-109345
title: >-
  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
summary: >-
  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 …
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2026-10-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T17:17:31.217'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109345'
references:
  - url: >-
      https://github.com/cure53/DOMPurify/security/advisories/GHSA-6688-9rhm-gjv2
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/dompurify-before-3.4.16-xss-via-in-place-returned-rawtext-root
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-12T18:00:08.209Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
