
Cloud Vulnerability DB
コミュニティ主導の脆弱性データベース
CVE-2026-133937 is a ReDoS (Regular Expression Denial of Service) vulnerability in highlight.js affecting all versions up to and including 11.12.0. The flaw resides in the hljs.highlight() function within src/languages/livescript.js (the Language Grammar Handler component), where a crafted text input triggers inefficient regular expression backtracking. It was discovered by researcher LeoWSY-hashblue and reported on September 1, 2026, with public disclosure and NVD publication on November 20, 2026. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 5.5 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The root cause is an ambiguous regular expression in livescript.js at line 285: /(?![ *])(\.|[^\\\n])*?/[gim]*(?=\W), classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-1333 (Inefficient Regular Expression Complexity). The body alternation \.|[^\\\n] is ambiguous on backslash characters — both alternatives can consume the same input — causing the regex engine to backtrack through every partition on a failed match, resulting in quadratic time complexity relative to input size. Live measurements on Node v24.14.0 confirmed the quadratic scaling: a 10 KB input of "/" + "a".repeat(n) takes ~585 ms, 20 KB takes ~2,336 ms, and 40 KB takes ~10,981 ms (×4 per doubling), with extrapolation suggesting ~2.1 hours for a 1 MB input in a single call. The attack requires no authentication and can be launched remotely by submitting crafted text to any application that passes user-controlled input to hljs.highlight() with the LiveScript language (GitHub Issue #4529, GitHub PR #4575).
Successful exploitation causes the Node.js event loop to stall for seconds to hours depending on input size, effectively rendering the affected service unresponsive — a Denial of Service condition. Because hljs.highlight() is synchronous and single-threaded, a single crafted request can block all other processing on the server. There is no confidentiality or integrity impact; the vulnerability is limited to availability of the affected service (GitHub Advisory, Red Hat Bugzilla).
A minimal proof-of-concept has been publicly published in the GitHub issue report, demonstrating the quadratic scaling with a simple Node.js script. The CVE status is listed as "Deferred" and the EPSS score is approximately 0.587–0.701%, placing it around the 49th percentile for exploitation probability. No in-the-wild exploitation has been observed, no threat actor attribution exists, and the vulnerability is not listed in the CISA KEV catalog. The NVD SSVC assessment marks it as automatable with a PoC exploitation status (GitHub Issue #4529, GitHub Advisory).
hljs.highlight() with the livescript language option (e.g., code editors, documentation platforms, or paste services).livescript.js. The minimal PoC payload is "/" + "a".repeat(n) where n is a large number (e.g., 40,000 characters produces ~11 seconds of CPU stall).blocked for Xms)./<repeated characters> patterns, especially targeting LiveScript language highlighting.No patched release of highlight.js has been published yet; a fix is pending acceptance via pull request #4575, which rewrites the vulnerable LiveScript regex to use mutually exclusive alternatives ((?:[^\\\/\[\n]|\\.| \[(?:[^\\\]\n]|\\.)*\])*?) that eliminate backtracking. Until a patched version is released, downstream users should: (1) cap untrusted input length to 10–20 KB before passing to hljs.highlight(); (2) run highlighting in a worker thread with a timeout to prevent event loop blocking; (3) avoid registering the LiveScript grammar if it is not needed; or (4) implement rate limiting on code highlighting operations. Monitor the highlight.js repository for a new release incorporating PR #4575 and PR #4546 (GitHub PR #4575, GitHub Issue #4529, Red Hat Bugzilla).
Red Hat has opened a tracking bug (Bugzilla #2579722) and assigned medium severity, with 68 users CC'd indicating broad internal interest across Red Hat product teams. The GitHub issue (#4529) received community engagement with a 👀 reaction and prompted multiple complementary pull requests (#4575, #4546, #4552) from community contributors addressing different affected grammars. The Artemis project (ls1intum/Artemis) has already merged a guard against the LiveScript grammar vulnerability, reflecting rapid downstream adoption of mitigations (Red Hat Bugzilla, GitHub PR #4575).
主要なLinuxディストリビューションとそのリリース間での可用性を修正しましょう。
bionic (esm-apps)
highlight.js
devel
highlight.js
focal (esm-apps)
highlight.js
jammy
highlight.js
jammy (esm-apps)
highlight.js
noble
highlight.js
noble (esm-apps)
highlight.js
resolute
highlight.js
ソース: この報告書はAIを用いて作成されました
無料脆弱性評価
9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。
パーソナライズされたデモを見る
"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"