highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
Upgrading highlight.js From 9.11.0 to 11.12.0
61 releases in betweennotes for 38
Reading releases, release notes and advisories…
Counted from 38 of 61 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking11.11.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
- Breaking11.10.0
Security
Fixes 2 advisories affecting 9.11.0
- ReDOS vulnerabities: multiple grammarsmoderate · GHSA-7wwv-vh3v-89cq
- Prototype Pollution in highlight.jsmoderate · GHSA-vfrc-7r7c-w9mx
- 11.12.0
fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]
- 11.12.0
fix(xml) remove recursive sublanguage references to prevent ReDoS [petejm]
Release by release
- Security
fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]
- Security
fix(xml) remove recursive sublanguage references to prevent ReDoS [petejm]
- New
Add FreeDesktop config file (
.desktop/ systemd) grammar [gg582] - New
Added 3rd party Cedar grammar to SUPPORTED_LANGUAGES [Dhruv Maniya]
- Security
- New
Added 3rd party Aiken grammar to SUPPORTED_LANGUAGES [Josh Marchand]
- New
Added 3rd party VoltScript grammar to SUPPORTED_LANGUAGES [Chester Moses]
- New
Added 3rd party Gleam grammar to SUPPORTED_LANGUAGES [Filip Hoffmann]
- New
Added 3rd party Magik grammar to SUPPORTED_LANGUAGES [Sebastiaan Speck]
- New
- Fixed
Fixes regressions with Rust grammar in 11.11.0 release.
- Fixed
- Breaking
CAVEATS / POTENTIALLY BREAKING CHANGES
- New
Added 3rd party TTCN-3 grammar to SUPPORTED_LANGUAGES [Osmocom]
- New
Added 3rd party Odin grammar to SUPPORTED_LANGUAGES [clsource]
- New
Added 3rd party Liquid grammar to SUPPORTED_LANGUAGES [Laurel King]
- Breaking
- Breaking
This version drops support for Node 16.x, which is no longer supported by Node.js.
- Breaking
enh(typescript) add support for
satisfiesoperator [Kisaragi Hiu] - Breaking
enc(c) added more C23 keywords [Melkor-1]
- Breaking
enh(json) added jsonc as an alias [BackupMiles]
- Breaking
- Breaking
Drops support for Node 14.x, which is no longer supported by Node.js.
- New
Added 3rd party Iptables grammar to SUPPORTED_LANGUAGES [Checconio]
- New
Added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES [gondow]
- New
Added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES [aana-h2]
- Breaking
- New
Added a function to default export to generate a fresh highlighter instance to be used by extensions [WisamMechano]
- New
Added BETA
__emitTokenskey to grammars to allow then to direct their own parsing, only using Highlight.js for the HTML rendering [Josh Goebel] - New
Added 3rd party Lang grammar to SUPPORTED_LANGUAGES [AdamRaichu]
- New
Added 3rd party C3 grammar to SUPPORTED_LANGUAGES [aliaegik]
- New
Added 3rd party Motoko grammar to SUPPORTED_LANGUAGES [rvanasa]
- New
Added 3rd party Candid grammar to SUPPORTED_LANGUAGES [rvanasa]
- Fixed
fix(haskell) Added support for characters [CrystalSplitter]
- New
- New
Added 3rd party LookML grammar to SUPPORTED_LANGUAGES [Josh Temple]
- New
Added 3rd party FunC grammar to SUPPORTED_LANGUAGES [Nikita Sobolev]
- New
Added 3rd party Flix grammar to SUPPORTED_LANGUAGES [The Flix Organisation]
- New
Added 3rd party RVT grammar to SUPPORTED_LANGUAGES [Sopitive]
- New
267 other lines we could not sort, mostly version bumps
- 11.12.0
Referenced existing 3rd party ES|QL grammar in SUPPORTED_LANGUAGES [Styx0x6]
- 11.12.0
enh(cmake) add
blockandendblockkeywords [Anonymous Maarten] - 11.12.0
enh(csharp) support digit separators in binary literals and numeric type suffixes, and stop highlighting the leading
_of an identifier, issue #4258 [Sarath Francis] - 11.12.0
enh(css) add corner-shape properties [Hama Tanveer]
- 11.12.0
enh(css) support six-digit
unicode-rangevalues [Konstantin Baltsat] - 11.12.0
enh(dart) add highlighting for class and function names [guuido]
- 11.12.0
enh(dns) highlight registered CAA property tags, issue #4475 [Joey Huang]
- 11.12.0
enh(dns) improve grammar: character strings, TXT, classes, escapes, addresses [Checconio]
- 11.12.0
enh(dos) add
batchas an alias, issue #4395 [Hashim Khan] - 11.12.0
enh(gherkin) update keyword list [Hirse]
7 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.