PrismJS DOM Clobbering vulnerability
Moderate severity
GitHub Reviewed
Published
Mar 3, 2025
to the GitHub Advisory Database
•
Updated Mar 3, 2025
Description
Published by the National Vulnerability Database
Mar 3, 2025
Published to the GitHub Advisory Database
Mar 3, 2025
Reviewed
Mar 3, 2025
Last updated
Mar 3, 2025
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