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).
주요 리눅스 배포판과 그 릴리스 전반에 걸친 가용성을 수정하세요.
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는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."