# CVE-2024-47875: DOMPurify nesting-based mXSS

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.5.0, 3.1.3 (CNA); fix release not confirmed
- Status: published
- Published: 2024-10-11 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2024-47875, DEBIAN-CVE-2024-47875, DSA-5790-1, CGA-cx2m-q88g-6cg5, CGA-q25q-cvfg-wph4, GHSA-gx9m-whjm-85jf, CGA-27xx-6w8x-hmcj, CGA-g333-jwqv-25wx
- Record: https://cvemate.com/vulnerability/CVE-2024-47875 · JSON: https://cvemate.com/vulnerability/CVE-2024-47875/json

## Description

```text
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H
- EPSS: 1.134%, percentile 67.558%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard argo-workflows (Chainguard): \< 3.6.0-r0
- chainguard opensearch-dashboards-2-fips (Chainguard): \< 2.17.1-r0
- wolfi argo-workflows (Wolfi): \< 3.6.0-r0
- cure53 dompurify: \< 3.1.3 \| \< 2.5.0 \| ≥ 3.0.0, \< 3.1.3
- debian cacti (Debian): \< 1.2.24+ds1-1+deb12u2 \| \< 1.2.26+ds1-1
- debian node-dompurify (Debian): \< 3.1.6+dfsg+~3.0.5-1 \| \< 2.4.1+dfsg+~2.4.0-2
- ubuntu node-dompurify (Ubuntu): All versions (No fix recorded)
- Npm dompurify (Npm): \< 2.5.0 \| ≥ 3.0.0, \< 3.1.3

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf>
- <https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f>
- <https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a>
- <https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098>
- <http://seclists.org/fulldisclosure/2025/Apr/14>
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00010.html>
- <https://ubuntu.com/security/CVE-2024-47875>
- <https://www.cve.org/CVERecord?id=CVE-2024-47875>
- <https://security-tracker.debian.org/tracker/CVE-2024-47875>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47875.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47875>
- <https://github.com/cure53/DOMPurify>

---

Data as of 2026-12-05T09:39:27.010Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
