Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. dompurify
  4. ›
  5. GHSA-55q2-fjhq-7xh7

GHSA-55q2-fjhq-7xh7: DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSS

August 7, 2026

During IN_PLACE sanitization, a hook that removes an element can leave that element’s detached descendants executable. A descendant image can retain its attacker-provided onload handler and fire after sanitize() returns, even though the returned root is clean and the image remains disconnected from the document.

References

  • github.com/advisories/GHSA-55q2-fjhq-7xh7
  • github.com/cure53/DOMPurify/commit/3067f7746769
  • github.com/cure53/DOMPurify/pull/1557
  • github.com/cure53/DOMPurify/releases/tag/3.4.13
  • github.com/cure53/DOMPurify/security/advisories/GHSA-55q2-fjhq-7xh7

Code Behaviors & Features

Detect and mitigate GHSA-55q2-fjhq-7xh7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.4.13

Fixed versions

  • 3.4.13

Solution

Upgrade to version 3.4.13 or above.

Impact 4.6 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/dompurify/GHSA-55q2-fjhq-7xh7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:04 +0000.