Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. dompurify
  4. ›
  5. CVE-2024-47875

CVE-2024-47875: DOMpurify has a nesting-based mXSS

October 11, 2024 (updated November 3, 2025)

DOMpurify was vulnerable to nesting-based mXSS

fixed by 0ef5e537 (2.x) and merge 943

Backporter should be aware of GHSA-mmhx-hmjr-r674 (CVE-2024-45801) when cherry-picking

References

  • github.com/advisories/GHSA-gx9m-whjm-85jf
  • github.com/cure53/DOMPurify
  • github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js
  • github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f
  • github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a
  • github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf
  • lists.debian.org/debian-lts-announce/2025/02/msg00010.html
  • nvd.nist.gov/vuln/detail/CVE-2024-47875

Code Behaviors & Features

Detect and mitigate CVE-2024-47875 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 2.5.0, all versions starting from 3.0.0 before 3.1.3

Fixed versions

  • 2.5.0
  • 3.1.3

Solution

Upgrade to versions 2.5.0, 3.1.3 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

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

Source file

npm/dompurify/CVE-2024-47875.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:27 +0000.