~ / search / GHSA-x7hr-w5r2-h6wg

GHSA-x7hr-w5r2-h6wg

PrismJS DOM Clobbering vulnerability

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-53382

Packages

EcosystemPackageAffectedFixed in
npm prismjs < 1.30.0 1.30.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.