CVE-2024-53382
MEDIUM EPSS 21.0%
Published Mar 3, 20251y ago · Modified Jun 17, 20262w ago
5.4 CVSS 3.1
Published Mar 3, 2025 1y ago
Last Modified Jun 17, 2026 2w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction Required
Scope Changed
Confidentiality Low
Integrity Low
Availability None
Threat Intelligence
EPSS Exploit Probability
21.0% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 2
CWE-79 Cross-site Scripting Injection
CWE-94 Improper Control of Generation of Code (Code Injection) Injection
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| prismjs | prism | * | ≤1.29.0 |
References 2
- gist.github.com https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660
- github.com https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259
Remediation
- gist.github.com https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660