logo

CVE-2024-53382 prismjs

Package

Manager: npm
Name: prismjs
Vulnerable Version: >=0 <1.30.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

EPSS: 0.00036 pctl0.09128

Details

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

Metadata

Created: 2025-03-03T09:30:34Z
Modified: 2025-06-30T12:51:19Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-x7hr-w5r2-h6wg/GHSA-x7hr-w5r2-h6wg.json
CWE IDs: ["CWE-79", "CWE-94"]
Alternative ID: GHSA-x7hr-w5r2-h6wg
Finding: F416
Auto approve: 1