CVE-2024-47875: Nesting-based mutation XSS in DOMPurify
- Vendor
- Cure53
CVE-2024-47875 is a nesting-based mutation cross-site scripting (mXSS) vulnerability in DOMPurify, a DOM-based sanitizer for HTML, MathML, and SVG. Specially crafted nested markup can bypass sanitization through DOM mutation, allowing attacker-controlled script to execute when the resulting markup is rendered by an application. The vulnerability affects applications incorporating vulnerable DOMPurify releases, including multiple third-party products. Fixes are available in DOMPurify 2.5.0 and 3.1.3.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can execute attacker-controlled JavaScript in the security context of an affected application, compromising information accessible to that context, modifying displayed content, or performing application actions with the affected user's authority. Actual consequences depend on how the application processes and renders untrusted markup and on the privileges available in the affected browser context. This vulnerability does not by itself establish server-side code execution.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific workaround is established. For affected Siemens COMOS deployments, restrict network access using appropriate access controls and follow Siemens industrial-security and product configuration guidance. These measures reduce exposure but do not correct the sanitizer bypass; applying a patched library or product release remains necessary.
Remediation
Patch, then assume compromise.
Upgrade DOMPurify to version 2.5.0 or later on the 2.x branch, or 3.1.3 or later on the 3.x branch. For bundled copies, install the relevant product update rather than assuming a separately installed library update replaces the embedded dependency. Confirmed fixes include Siemens COMOS V10.4.5 or V10.5.2 for the respective affected COMOS Web release lines; OX App Suite frontend 7.10.6-rev50; OpenShift Container Platform 4.14.41, 4.15.38, 4.16.20, and 4.17.4; and OpenShift Dev Spaces 3.17. Red Hat Grafana fixes include 9.2.10-20.el8_10, 9.2.10-19.el9_4, and 10.2.6-7.el9_5 for their applicable channels. When backporting or cherry-picking the DOMPurify fix, also account for the related CVE-2024-45801 advisory.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-47875 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2024-47875 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-47875?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-47875, the earliest disclosed Sep 2, 2025.
- Is there a patch for CVE-2024-47875?
- Upgrade DOMPurify to version 2.5.0 or later on the 2.x branch, or 3.1.3 or later on the 3.x branch. For bundled copies, install the relevant product update rather than assuming a separately installed library update replaces the embedded dependency.
- What products are affected by CVE-2024-47875?
- Cure53 Dompurify.
- How severe is CVE-2024-47875?
- CVE-2024-47875 has a CVSS v3.1 score of 6.1 (Medium) and an EPSS score of 1.4% (74th percentile) as of Nov 19, 2026.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.