Install
highlight.js
Syntax highlighting with language autodetection.
11.12.0Latest, 12 Aug 2026
242MDownloads, last month
0Advisories on the latest
2Advisories, all versions
BSD-3-ClauseLicence
25KStars
6.6/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | ReDOS vulnerabities: multiple grammars GHSA-7wwv-vh3v-89cq | Fixed in 10.4.1 | 4 Dec 2020 |
| Moderate | Prototype Pollution in highlight.js CVE-2020-26237 | Fixed in 9.18.2, 10.1.2 | 24 Nov 2020 |
In the news
- Lazy-loading KaTeX, Mermaid and highlight.js in a markdown preview dev.to, 25 Nov 2026
- How can I implement highlight.js in my react-quill? stackoverflow.com, 5 Feb 2025
- highlight.js with deno fresh not applying style stackoverflow.com, 9 Dec 2024
- Using rollup with highlight.js stackoverflow.com, 10 Sep 2024
- React Quill how can i use highlight.js stackoverflow.com, 23 Aug 2024
On Hacker News
- Highlight.js – Syntax highlighting for the Web 167 points, 69 comments, 20 Feb 2015
- We're Not a CDN – Highlight.js 22 points, 5 comments, 18 Dec 2023
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.