prismjs

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

1.30.0Latest, 10 Mar 2025
212MDownloads, last month
0Advisories on the latest
6Advisories, all versions
MITLicence
13KStars
5.4/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Moderate PrismJS DOM Clobbering vulnerability CVE-2024-53382 Fixed in 1.30.0 3 Mar 2025
High Cross-site Scripting in Prism CVE-2022-23647 Fixed in 1.27.0 22 Feb 2022
Moderate prismjs Regular Expression Denial of Service vulnerability CVE-2021-3801 Fixed in 1.25.0 20 Sep 2021
High Regular Expression Denial of Service (ReDoS) in Prism CVE-2021-32723 Fixed in 1.24.0 28 Jun 2021
High Denial of service in prismjs CVE-2021-23341 Fixed in 1.23.0 1 Mar 2021
High Cross-Site Scripting in Prism CVE-2020-15138 Fixed in 1.21.0 7 Aug 2020

In the news

On Hacker News

  • PrismJS 103 points, 24 comments, 31 Jul 2012

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.