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…

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.003 (22.1th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.