CVEvulnerability
CVE-2024-53382
5.4 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2025-03-03
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
- CVSS 3.1 ([email protected])
- 5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79, CWE-94
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 configurations
• prismjs prism (<= 1.29.0)
Related
References
- https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660 Exploit, Patch, Third Party Advisory
- https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259 Product
- https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660 Exploit, Patch, Third Party Advisory