{"id":"CVE-2024-53382","aliases":["CVE-2024-53382","GHSA-x7hr-w5r2-h6wg"],"related":[],"kind":"vulnerability","state":"published","title":"PrismJS DOM Clobbering vulnerability","summary":"Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.","source":"cvelist"},{"lang":"es","text":"Prism (también conocido como PrismJS) hasta la versión 1.29.0 permite el DOM Clobbering (con el consiguiente XSS para entradas no confiables que contienen HTML pero no contienen directamente JavaScript), porque la búsqueda de document.currentScript puede ser ocultada por elementos HTML inyectados por un atacante.","source":"nvd"}],"published":"2025-03-03T00:00:00.000Z","modified":"2026-09-10T03:50:23.418Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.29.0","status":"affected"}],"vendor":"PrismJS","product":"Prism","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.30.0"}],"ecosystem":"npm","package":"prismjs","purl":"pkg:npm/prismjs","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.29.0"}],"vendor":"prismjs","product":"prism","cpe":"cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660","tags":["exploit","patch","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53382","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/PrismJS/prism/pull/3863","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PrismJS/prism","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-03-03T21:52:57.337Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53382","url":"https://www.cve.org/CVERecord?id=CVE-2024-53382","licence":"CVE Terms of Use","modified":"2025-03-03T21:53:33.210Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x7hr-w5r2-h6wg","url":"https://github.com/advisories/GHSA-x7hr-w5r2-h6wg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:23.418Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53382","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53382","licence":"Public domain","modified":"2026-06-17T08:08:51.140Z"}],"updatedAt":"2026-11-25T22:58:52.140Z","epss":{"score":0.00384,"percentile":0.34562,"date":"2026-12-02T12:00:21.000Z"}}