highlight.js (npm)
JavaScript syntax highlighter with language auto-detection and zero dependencies.
Advisories
3
Latest version
11.12.0
Released Aug 12, 2026
License
BSD-3-Clause
OpenSSF Scorecard
6.6 / 10
How to fix
Upgrading to 10.4.1 or later clears every advisory below that has a fix.
Upgrade commands
npm
npm install highlight.js@11.12.0yarn
yarn add highlight.js@11.12.0pnpm
pnpm add highlight.js@11.12.0Known vulnerabilities
| Advisory | Severity | Affected | Fixed in |
|---|---|---|---|
| GHSA-7wwv-vh3v-89cq ReDOS vulnerabities: multiple grammars |
Medium | >= 9.0.0, < 10.4.1 | 10.4.1 |
| GHSA-vfrc-7r7c-w9mx Prototype Pollution in highlight.js |
High EPSS 1.33% |
< 9.18.2 | 9.18.2 |
| GHSA-vfrc-7r7c-w9mx Prototype Pollution in highlight.js |
High EPSS 1.33% |
>= 10.0.0, < 10.1.2 | 10.1.2 |
Source: git://github.com/highlightjs/highlight.js.git
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor