CVE-2024-53382

NameCVE-2024-53382
DescriptionPrism (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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1099619

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-prismjs (PTS)bullseye1.23.0+dfsg-1+deb11u2vulnerable
bookworm, trixie1.29.0+dfsg+~1.26.0-1vulnerable
forky, sid1.30.0+dfsg+~1.26.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-prismjssource(unstable)1.30.0+dfsg+~1.26.5-11099619

Notes

[trixie] - node-prismjs <no-dsa> (Minor issue)
[bookworm] - node-prismjs <no-dsa> (Minor issue)
https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660
https://github.com/PrismJS/prism/issues/3864
https://github.com/PrismJS/prism/pull/3863 (v1.30.0)
Fixed by: https://github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d (v1.30.0)

Search for package or bug name: Reporting problems