prismjs@1.25.0 vulnerabilities

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

Direct Vulnerabilities

Known vulnerabilities in the prismjs package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

prismjs is a lightweight, robust, elegant syntax highlighting library.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the command line plugin which does not properly escape its output, leading to the input text being inserted into the DOM as HTML code.

How to fix Cross-site Scripting (XSS)?

Upgrade prismjs to version 1.27.0 or higher.

>=1.14.0 <1.27.0