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

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

On Hacker News

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