THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-p98j-92pf-mc4p (low) — DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS

[GHSA] GHSA-p98j-92pf-mc4p (low) — DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS

medgithub_advisoriesPublished 2026-09-30

GHSA-p98j-92pf-mc4p Severity: low CVE: None

DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS

## Summary

In `IN_PLACE` mode DOMPurify sanitizes the caller's live DOM subtree directly. To close a known hazard (GHSA-55q2-fjhq-7xh7), the library neutralizes any node a hook detaches during sanitization by stripping its subtree's non-

MITRE ATT&CK techniques

Original source: https://github.com/advisories/GHSA-p98j-92pf-mc4p