WizがGoogle Cloudに参加:共に魔法を作り出す

CVE-2026-133937: 
Grafana 脆弱性分析と緩和策

概要

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).

エクスプロイテーションのステップ

  1. Identify target: Locate a web application or service that uses highlight.js ≤ 11.12.0 and passes user-controlled text to hljs.highlight() with the livescript language option (e.g., code editors, documentation platforms, or paste services).
  2. Craft malicious payload: Construct a string that triggers the ambiguous regex backtracking in 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).
  3. Submit payload: Send the crafted input to the target application's code highlighting endpoint via HTTP request (e.g., a POST to a syntax highlighting API or a form submission).
  4. Achieve DoS: The server's Node.js event loop stalls while processing the regex match, blocking all other requests and causing service unavailability. Repeating the request before recovery maintains the denial of service condition (GitHub Issue #4529).

妥協の兆候

  • Logs: Unusually long response times or timeouts on endpoints that invoke syntax highlighting; Node.js process logs showing event loop lag warnings (e.g., blocked for Xms).
  • Process: Sustained high CPU usage (near 100%) by the Node.js process handling highlight.js requests, particularly correlated with incoming requests containing large text inputs.
  • Network: Repeated HTTP requests to code highlighting endpoints containing large payloads (tens of KB) with content resembling /<repeated characters> patterns, especially targeting LiveScript language highlighting.
  • Application Metrics: Sudden spikes in request latency or queue depth on services that use highlight.js, with no corresponding increase in legitimate traffic (GitHub Issue #4529).

緩和策と回避策

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ディストリビューションの修正状況

主要なLinuxディストリビューションとそのリリース間での可用性を修正しましょう。

Debian

影響

bookworm

highlight.js

影響

sid

highlight.js

影響

trixie

highlight.js

影響

Ubuntu

不明

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

不明

RHEL / CentOS

影響

RHEL 8

grafana.src

影響

RHEL 9

grafana.src

影響

RHEL 10

grafana.src

影響

ソース: この報告書はAIを用いて作成されました

関連 Grafana 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

CVE-2026-134815CRITICAL9.2
  • Grafana logoGrafana
  • grafana-prometheus
いいえいいえNov 22, 2026
CVE-2026-134813HIGH8.7
  • Grafana logoGrafana
  • grafana-mssql
いいえいいえNov 22, 2026
CVE-2026-133937MEDIUM5.5
  • Grafana logoGrafana
  • grafana-azure-monitor
いいえいいえNov 20, 2026
CVE-2026-10084MEDIUM5.3
  • Grafana logoGrafana
  • cpe:2.3:a:grafana:grafana
いいえはいNov 24, 2026
CVE-2026-133487LOW2.1
  • Grafana logoGrafana
  • nodejs:22::v8-12.4-devel
いいえはいNov 20, 2026

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者