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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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 Sun, 08 Nov 2026 00:15:31 +0000.