Install
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
Source · Homepage · Ask AI Mode · · Markdown
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
- how do i use prismjs when importing into a web-component stackoverflow.com, 30 Sep 2024
- PrismJS package not automatically highlighting markdown stackoverflow.com, 29 Jun 2024
- Using prismjs keep-markup plugin still displays tag in code stackoverflow.com, 5 Jun 2024
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.