CVE-2024-53382Code Injection in Prism

Severity
5.4MEDIUMNVD
CNA4.9
EPSS
0.2%
top 63.34%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMar 3

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NExploitability: 2.3 | Impact: 2.7

Affected Packages2 packages

CVEListV5prismjs/prism1.29.0
NVDprismjs/prism1.29.0

Patches

🔴Vulnerability Details

4
OSV
CVE-2024-53382: Prism (aka PrismJS) through 12025-03-03
GHSA
PrismJS DOM Clobbering vulnerability2025-03-03
OSV
PrismJS DOM Clobbering vulnerability2025-03-03
CVEList
CVE-2024-53382: Prism (aka PrismJS) through 12025-03-03

📋Vendor Advisories

2
Red Hat
prismjs: DOM Clobbering vulnerability within the Prism library's prism-autoloader plugin2025-03-03
Debian
CVE-2024-53382: node-prismjs - Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for...2024
CVE-2024-53382 — Code Injection in Prismjs Prism | cvebase