CVE-2024-53382Prismjs Prism
Medium 5.4
Follow: this CVE · Prismjs · Prismjs Prism We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 32
- Auth required
- Yes
- Published
- Mar 3, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Prism.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | prismjs |
< 1.30.0 |
1.30.0 |
npm install prismjs@1.30.0 |
Per OSV / GitHub Advisories (GHSA-x7hr-w5r2-h6wg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| prismjs | prism | ≤ 1.29.0 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Patch Third Party Advisory
- github.com Product