CVE-2024-53382
MEDIUM 5.4CVSS 3.1PrismJS DOM Clobbering vulnerability
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.
- Published
- 3 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-79CWE-94
- Also known as
- GHSA-x7hr-w5r2-h6wg
- Sources
- NVDJSONOSV GHSA-x7hr-w5r2-h6wgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prismjs | prismcpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:* |
<= 1.29.0 | |
| OSV | npm | prismjs | < 1.30.0 | 1.30.0 |
References
- https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259 · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-53382 · ADVISORY
- https://github.com/PrismJS/prism/pull/3863 · WEB
- https://github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d · WEB
- https://github.com/PrismJS/prism · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Mar 2025)