RCE in Prismjs Prism
CVE-2024-53382
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (26.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 26th percentile — 26.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Prismjs Prism — versions 0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660 (Exploit, Patch, Third Party Advisory)
- github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js (Product)
Frequently asked questions
- What is CVE-2024-53382?
- CVE-2024-53382 is a medium-severity vulnerability in Prismjs Prism, classified under Code Injection. CVSS score: 4.9/10. Published 2025-03-03.
- How severe is CVE-2024-53382?
- Medium severity. CVSS v3 base score is 4.9 out of 10.
- Is CVE-2024-53382 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.