---
id: CVE-2026-109344
title: >-
  DOMPurify from 3.4.13 before 3.4.16 contains a cross-site scripting
  vulnerability because IN_PLACE mode fails to neutralize subtrees detached by
  afterSanitizeElements or afterSanitizeAttributes hooks
summary: >-
  DOMPurify from 3.4.13 before 3.4.16 contains a cross-site scripting
  vulnerability because IN_PLACE mode fails to neutralize subtrees detached by
  afterSanitizeElements or afterSanitizeAttributes hooks. Attackers can supply
  markup with on*…
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.060'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109344'
references:
  - url: >-
      https://github.com/cure53/DOMPurify/security/advisories/GHSA-p98j-92pf-mc4p
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/dompurify-from-3.4.13-before-3.4.16-dom-xss-via-in-place-aftersanitize-hooks
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-12T18:00:08.209Z'
---

## Overview

DOMPurify from 3.4.13 before 3.4.16 contains a cross-site scripting vulnerability because IN_PLACE mode fails to neutralize subtrees detached by afterSanitizeElements or afterSanitizeAttributes hooks. Attackers can supply markup with on* handlers inside a wrapper removed by such hooks, leaving handlers armed on the live DOM to execute script in the victim origin.

## Remediation

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