Live threats

All CVEs / Prismjs

CVE-2024-53382Prismjs Prism

Medium 5.4

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
Weakness (CWE)
CWE-94, CWE-79
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Prism.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
prismjsprism≤ 1.29.0

Official sources

References

Links published by the sources. Open them with care.