CVE-2024-53382

prismjs: DOM Clobbering vulnerability within the Prism library's prism-autoloader plugin

Published Mar 3, 2025 CVSS 3.1 · 4.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-53973 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.
Github GHSA Github GHSA GHSA-x7hr-w5r2-h6wg PrismJS DOM Clobbering vulnerability
History
Type Values Removed Values Added
First Time appeared Prismjs
Prismjs prism
Weaknesses CWE-79
CPEs cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*
Vendors & Products Prismjs
Prismjs prism
Type Values Removed Values Added
Title prismjs: DOM Clobbering vulnerability within the Prism library's prism-autoloader plugin
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 3, 2025, 9:53 PM
Reserved
Nov 20, 2024, 12:00 AM
Status
Analyzed
Published
Mar 3, 2025, 7:15 AM
Modified
Jun 17, 2026, 8:08 AM
Severity
Moderate
Public date
Mar 3, 2025, 12:00 AM