{"id":"CVE-2024-53382","published":"2025-03-03T00:00:00Z","modified":"2025-03-03T21:53:33Z","title":"Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML…","vendor":"PrismJS","product":"Prism","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0037,"percentile":0.31529,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660","tags":[]},{"url":"https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259","tags":[]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":6.31},{"name":"CVSS severity","points":3.43}]},"vendorSlug":"prismjs","affectedVersions":[{"vendor":"PrismJS","product":"Prism","versions":["<= 1.29.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-03T21:52:57.337439Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"prismjs","vulnerableRanges":["<1.30.0"],"patched":["1.30.0"],"from":["GHSA-x7hr-w5r2-h6wg"],"provenance":"source"}],"summary":{"text":"Prism (PrismJS), through version 1.29.0, is vulnerable to DOM Clobbering because its document.currentScript lookup can be shadowed by attacker-injected HTML elements. The flaw lets an attacker who can supply untrusted input containing HTML, but no direct JavaScript, achieve cross-site scripting, and exploitation requires that Prism be given that input while the attacker has low-privilege access and the attack is not reliant on any user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:00Z"},"euvd":{"id":"EUVD-2024-53973","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-prismjs-prism-cve-2021-3801","parents":[{"from":"CVE-2021-3801","to":"CVE-2024-53382","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["prism.js"],"commits":["https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9","https://github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d"],"basis":"rarely changed file"}]}]}}