CVE-2024-53382Published Mar 3, 2025 · Mar 3Updated Oct 28
PrismJS DOM Clobbering vulnerability
PrismJS Prism
Medium4.9Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| prismjs npm |
|
|
Original description
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.
From the CVE record · mitre