Advisory

GHSA-x7hr-w5r2-h6wg

Also known as: CVE-2024-53382

Summary

PrismJS DOM Clobbering vulnerability

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-03 09:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

prismjs

npm · All systems

Affected

  • introduced 0, fixed 1.30.0 (semver)

Fixed versions

1.30.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences