NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-53382: PrismJS DOM Clobbering vulnerability

mediumCVSS 3.1 4.9GHSA-x7hr-w5r2-h6wg

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.

Published Mar 3, 2025 · Updated Jun 30, 2025

Affected packages

prismjs

Ecosystem
npm
Affected
< 1.30.0
Fixed in
1.30.0
Check
npm ls prismjs

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to lkuechler.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology