CVE-2024-53382: prismjs prism Improper Control of Generation of Code
Vulnerability summary
CVE-2024-53382 is a medium (CVSS 5.4) Improper Control of Generation of Code vulnerability in prismjs prism. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 34.5% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 03-03-2025PublishedVulnerability first disclosed.
- 03-03-2025Last modifiedVulnerability information updated.
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 metrics
6 scores · 6 sources · 1 version- CVE.orgCNA4.9MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated4.9MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated4.9MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.38%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.34% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundAeb128E44F05F95828A1A824708Df660
Maturity: poc
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard8 products
- kibana-8.19< 8.19.3-r1
- kibana-8.19-bitnami< 8.19.3-r1
- kibana-8.19-iamguarded< 8.19.3-r1
- kibana-9.4< 9.4.2-r1
- kibana-9.4-iamguarded< 9.4.2-r1
Debian1 product
- node-prismjsAll versions (No fix recorded) | < 1.30.0+dfsg+~1.26.5-1
Npm1 product
- prismjs< 1.30.0
Prismjs1 product
- prism≤ 1.29.0
Ubuntu1 product
- node-prismjsAll versions (No fix recorded)
5 vendors · 12 products
References
10 links- github.com/PrismJS/prismPACKAGE