CVE-2026-133937 Details
Description
A flaw has been found in highlight highlight.js up to 11.12.0. The affected element is the function hljs.highlight of the file src/languages/livescript.js of the component Language Grammar Handler. Executing a manipulation of the argument text can lead to inefficient regular expression complexity. The attack can be launched remotely. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.
A denial-of-service vulnerability has been identified in highlight.js versions prior to 11.12.0, specifically within the Livescript language grammar. The issue arises in the 'hljs.highlight' function of 'src/languages/livescript.js', where improper handling of the 'text' argument can lead to inefficient regular expression processing. This vulnerability can be exploited remotely, causing significant delays in processing time by stalling the event loop for several seconds, with the impact growing superlinearly with input size.
Users can update to highlight.js version 11.12.1 or later, where this vulnerability has been fixed. For those unable to update, it is recommended to cap untrusted input length to 10-20 KB before processing with the 'highlight()' function, or to use a web worker with a timeout to handle the highlighting process.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/highlightjs/highlight.js/issues/4529 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/highlightjs/highlight.js/pull/4575 | [email protected] | Issue TrackingVendor |
| https://vuldb.com/cve/CVE-2026-133937 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1052004 | [email protected] | Permission Required |
| https://vuldb.com/vuln/441503 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/441503/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| highlight.js | <= 11.12.0 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | New CVE Received | [email protected] |
Volerion