Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PrismJS | Prism | ≤ 1.29.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-prismjs | 1.30.0+dfsg+~1.26.5-1 | — |
| Debian 13 | node-prismjs | No fix yet | — |
| Debian 12 | node-prismjs | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-prismjs | No fix yet | — |
| Ubuntu 26.04 LTS | node-prismjs | No fix yet | — |
| Ubuntu 25.10 | node-prismjs | No fix yet | — |
| Ubuntu 24.04 LTS | node-prismjs | No fix yet | — |
| Ubuntu 22.04 LTS | node-prismjs | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-prismjs | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | prismjs | < 1.30.0 | 1.30.0 | GHSA-x7hr-w5r2-h6wg |
Advisories 3
- WID-SEC-2026-0592 Red Hat Developer Hub: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 11, 2026
- WID-SEC-2025-1399 IBM Maximo Asset Management: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Jun 25, 2025
- NCSC-2025-0123 Kwetsbaarheden verholpen in Oracle Database Producten NCSC-NL (Netherlands) · Apr 16, 2025