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

EcosystemPackageFixed inAdvisory
Debian:12node-prismjsno fix listedDEBIAN-CVE-2024-53382
Debian:13node-prismjsno fix listedDEBIAN-CVE-2024-53382
Debian:14node-prismjs1.30.0+dfsg+~1.26.5-1DEBIAN-CVE-2024-53382
Ubuntu:22.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2024-53382
Ubuntu:24.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2024-53382
Ubuntu:25.10node-prismjsno fix listedUBUNTU-CVE-2024-53382
Ubuntu:26.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2024-53382
Ubuntu:26.10node-prismjsno fix listedUBUNTU-CVE-2024-53382
npmprismjs1.30.0GHSA-x7hr-w5r2-h6wg

Affected products (as reported)

VendorProductVersions
PrismJS Prism 0 – through 1.29.0

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N

References