# CVE-2024-53382: PrismJS DOM Clobbering vulnerability

- Severity: Medium 4.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-03T00:00:00.000Z
- Modified: 2026-09-10T03:50:23.418Z
- Also known as: GHSA-x7hr-w5r2-h6wg
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- PrismJS Prism: up to 1.29.0
- prismjs (npm): before 1.30.0

## Every score

- mitre: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2024-53382](https://www.cve.org/CVERecord?id=CVE-2024-53382), CVE Terms of Use, modified 2025-03-03
- GitHub Advisory Database: [GHSA-x7hr-w5r2-h6wg](https://github.com/advisories/GHSA-x7hr-w5r2-h6wg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-53382](https://nvd.nist.gov/vuln/detail/CVE-2024-53382), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53382 · Whole record: https://cve.day/CVE-2024-53382.json · Rebuilt by cve.day 2026-11-25T22:58:52.140Z
