Vulnerability · Published Mar 3, 2025 · Assigned by mitre
CVE-2024-53382
Medium 4.9
In plain English
A medium-severity code injection in Prism from PrismJS. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.9Medium
Exploit odds (30 days)0.3%top 72.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-prismjs | no fix listed | DEBIAN-CVE-2024-53382 |
| Debian:13 | node-prismjs | no fix listed | DEBIAN-CVE-2024-53382 |
| Debian:14 | node-prismjs | 1.30.0+dfsg+~1.26.5-1 | DEBIAN-CVE-2024-53382 |
| Ubuntu:22.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2024-53382 |
| Ubuntu:24.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2024-53382 |
| Ubuntu:25.10 | node-prismjs | no fix listed | UBUNTU-CVE-2024-53382 |
| Ubuntu:26.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2024-53382 |
| Ubuntu:26.10 | node-prismjs | no fix listed | UBUNTU-CVE-2024-53382 |
| npm | prismjs | 1.30.0 | GHSA-x7hr-w5r2-h6wg |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N