ADVISORIES

GitHub Advisory Database

GHSA-x7hr-w5r2-h6wg

PrismJS DOM Clobbering vulnerability

Moderate CVE-2024-53382

Details

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 packages

EcosystemPackageAffected versions
npmprismjs
All versions before 1.30.0 (fixed in 1.30.0)

References