{"answers":{"affected":"2 open source packages ship an affected version, including dompurify. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-48910 in the wild and no public exploit code.","fix":"Upgrade dompurify to 2.4.2 or later.","what":"CVE-2024-48910 is a critical vulnerability in cure53 DOMPurify, published on 31 Oct 2024."},"fix_prompt":"Check this codebase for CVE-2024-48910 and fix it if it is affected.\n\nWhat it is: CVE-2024-48910 is a critical vulnerability in cure53 DOMPurify, published on 31 Oct 2024. \nExploitation: There is no known exploitation of CVE-2024-48910 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- dompurify (npm): affected all versions; fixed in 2.4.2\n- dompurify (npm): affected all versions; fixed in 2.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-48910/ (Markdown: https://insights.sbomify.com/CVE-2024-48910/index.md)","id":"CVE-2024-48910","markdown":"https://insights.sbomify.com/CVE-2024-48910/index.md","name":"CVE-2024-48910","record":{"aliases":["DEBIAN-CVE-2024-48910","GHSA-p3vf-v8qc-cwcr","UBUNTU-CVE-2024-48910"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"dompurify","vendor":"cure53"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify was vulnerable to prototype pollution. This vulnerability is fixed in 2.4.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-11-11","github_poc":2,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-11T04:24:33Z","kind":"github_poc","ref":"https://github.com/Mitchellzhou1/CVE-2024-48910-PoC","stars":2,"title":null},{"date":"2025-11-12T12:42:02Z","kind":"github_poc","ref":"https://github.com/Alex-Acero-Security/CVE-2024-48910-POC","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"DOMPurify vulnerable to tampering by prototype polution","id":"CVE-2024-48910","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"OpenCanary Executes Commands From Potentially Writable Config File","id":"CVE-2024-48911"},"packages":[{"ecosystem":"npm","fixed":["2.4.2"],"introduced":["0"],"last_affected":[],"package":"dompurify","purl":null,"source":"GHSA-p3vf-v8qc-cwcr"},{"ecosystem":"npm","fixed":["2.4.2"],"introduced":["0"],"last_affected":[],"package":"dompurify","purl":"pkg:npm/dompurify","source":"GHSA-p3vf-v8qc-cwcr"}],"prev":{"headline":"SpiceDB calls to LookupResources using LookupResources2 with caveats may return context is missing when it is not","id":"CVE-2024-48909"},"products":["DOMPurify"],"published":"2024-10-31","related":[{"cvss_score":10,"headline":"DOMPurify nesting-based mXSS","id":"CVE-2024-47875","kev_date_added":null,"published":"2024-10-11"},{"cvss_score":8.2,"headline":"DOMPurify XSS via `selectedcontent` re-clone","id":"CVE-2026-47423","kev_date_added":null,"published":"2026-07-14"},{"cvss_score":7.3,"headline":"Tampering by prototype polution in DOMPurify","id":"CVE-2024-45801","kev_date_added":null,"published":"2024-09-16"},{"cvss_score":6.3,"headline":"DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside \u003ctemplate\u003e.content","id":"CVE-2026-49978","kev_date_added":null,"published":"2026-07-14"},{"cvss_score":6.1,"headline":"DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks","id":"CVE-2026-49458","kev_date_added":null,"published":"2026-07-14"},{"cvss_score":6.1,"headline":"DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM","id":"CVE-2026-49459","kev_date_added":null,"published":"2026-07-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["cure53"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-48910/"}