{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-47875","id":"CVE-2024-47875","title":"DOMPurify nesting-based mXSS","description":"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.","descriptionLong":"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.","published":"2024-10-11T14:59:27.641Z","updated":"2026-10-28T02:30:39.765923523Z","reserved":"2024-10-04T16:00:09.630Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:H","rating":"critical","source":"GitHub"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["cure53 DOMPurify"],"affectedProducts":[{"vendor":"cure53","product":"DOMPurify","defaultStatus":null,"versions":[{"version":"< 2.5.0","status":"affected"},{"version":"< 3.1.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"dompurify","purl":"pkg:npm/dompurify","ranges":["<2.5.0",">=3.0.0 <3.1.3"],"fixed":["2.5.0","3.1.3"],"advisory":"GHSA-gx9m-whjm-85jf"}],"cwes":["CWE-79"],"aliases":["GHSA-gx9m-whjm-85jf"],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf","tags":["x_refsource_CONFIRM","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098","tags":["x_refsource_MISC","Product","web"]},{"url":"http://seclists.org/fulldisclosure/2025/Apr/14","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00010.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47875.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47875","tags":["advisory"]},{"url":"https://github.com/cure53/DOMPurify","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01134,"epssPercentile":0.6716,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-47875","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47875","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-47875","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gx9m-whjm-85jf","ok":true,"note":"GHSA-gx9m-whjm-85jf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-47875","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}