Cross-site Scripting (XSS) Affecting node-prismjs package, versions <1.30.0+dfsg+~1.26.5-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.38% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-NODEPRISMJS-9058116
  • published5 Mar 2025
  • disclosed3 Mar 2025

Introduced: 3 Mar 2025

CVE-2024-53382  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Debian:unstable node-prismjs to version 1.30.0+dfsg+~1.26.5-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-prismjs package and not the node-prismjs package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1