CVE-2024-53382
ADVISORY - githubSummary
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.
Common Weakness Enumeration (CWE)
Improper Control of Generation of Code ('Code Injection')
GitHub
CVSS SCORE
4.9medium| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| prismjs | npm | - | - | <1.30.0 | 1.30.0 |
CVSS:3 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone). One example of an Adjacent attack would be an ARP (IPv4) or neighbor discovery (IPv6) flood leading to a denial of service on the local LAN segment (e.g., CVE-2013-6014).
A successful attack depends on conditions beyond the attacker's control, requiring investing a measurable amount of effort in research, preparation, or execution against the vulnerable component before a successful attack.
The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges has the ability to access only non-sensitive resources.
The vulnerable system can be exploited without interaction from any user.
An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.
There is some loss of confidentiality. Access to some restricted information is obtained, but the attacker does not have control over what information is obtained, or the amount or kind of loss is limited. The information disclosure does not cause a direct, serious loss to the impacted component.
Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is limited. The data modification does not have a direct, serious impact on the impacted component.
There is no impact to availability within the impacted component.
NIST
CVSS SCORE
4.9mediumDebian
-
Ubuntu
2.3
CVSS SCORE
5.4mediumRed Hat
1.8
CVSS SCORE
4.9mediumChainguard
CGA-5vxp-2f32-rf88
-
Chainguard
CGA-ppc9-4xcg-vw85
-
minimos
MINI-746r-fq7h-8ccg
-
minimos
MINI-8c8g-9ppv-c4pj
-
minimos
MINI-92mm-8fmg-44cr
-
minimos
MINI-9vmv-qmc9-j48r
-
minimos
MINI-c95c-h2m5-vxc3
-
minimos
MINI-h6hw-mrmg-gm3m
-
minimos
MINI-mxj8-pxrw-hf57
-
minimos
MINI-rp39-2q76-54qm
-
minimos
MINI-vr67-3j32-wwqr
-