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

CVE-2026-140008: 
JavaScript 脆弱性分析と緩和策

概要

CVE-2026-140008 is a denial-of-service vulnerability in the minimatch npm package caused by quadratic compilation time when processing long wildcard-only glob patterns. The flaw exists in versions 11.0.0 through 11.0.6 and was introduced by the mergeRows() function added in commit 2e1d896. It was disclosed on November 30, 2026, with a fix released in version 11.0.7. The vulnerability carries a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, Feedly).

技術的詳細

The root cause is an inefficient algorithm (CWE-407) in the mergeRows() function located in src/index.ts (approximately lines 813–852). For each wildcard position in a pattern row, the function copies and joins the entire row to construct a Map key, resulting in O(n²) compilation time relative to the number of path parts. For example, a pattern of 8,000 wildcard parts (*) joined by / takes approximately 805 ms to compile, and extrapolating to the 64 KB pattern limit (~32,000 parts) would block the event loop for roughly 13 seconds. Brace expansion that generates multiple rows further multiplies the cost. The fix in version 11.0.7 replaces the full-row join with an incremental prefix/suffix hashing scheme via a new #mergeKeys() method, reducing complexity to linear (GitHub Advisory, Fix Commit).

影響

Successful exploitation allows an unauthenticated remote attacker to block the Node.js JavaScript event loop by supplying crafted glob patterns with many wildcard path segments, causing a complete denial of service for any application that passes uncached user-controlled patterns to new Minimatch() or other compiling entry points. There is no confidentiality or integrity impact — the vulnerability is limited to availability. Applications using brace expansion in patterns face amplified impact due to the multiplicative effect on row count (GitHub Advisory, Feedly).

利用可能性

As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is 0.0, reflecting a very low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires only the ability to supply uncached glob patterns to an affected application — no authentication or special privileges are needed — making it straightforward to trigger if such an input path exists.

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

  1. Identify a target: Find a Node.js application using minimatch versions 11.0.0–11.0.6 that accepts user-controlled input passed directly or indirectly to new Minimatch(pattern) or equivalent compiling entry points without caching or input validation.
  2. Craft a malicious pattern: Construct a glob pattern consisting of a large number of wildcard-only path segments, e.g., Array(8000).fill('*').join('/'), or amplify the effect using brace expansion such as {w0,w1,...,w15}/*/*/*/... with thousands of wildcard parts.
  3. Submit the pattern: Send the crafted pattern as input to the vulnerable application endpoint (e.g., via an HTTP request parameter, API call, or file upload field that feeds into glob matching logic).
  4. Trigger quadratic compilation: The mergeRows() function processes the pattern, performing O(n²) work that blocks the JavaScript event loop for several seconds to over 13 seconds per request at maximum pattern size.
  5. Achieve denial of service: Repeated submissions of such patterns exhaust the event loop, rendering the application unresponsive to legitimate requests (GitHub Advisory).

妥協の兆候

  • Logs: Application logs showing unusually long response times or timeouts on endpoints that perform glob/file matching operations; Node.js process hang or unresponsiveness correlated with specific request patterns.
  • Network: Repeated HTTP requests containing long strings of * characters separated by /, or large brace-expanded glob expressions in query parameters or request bodies.
  • Process: Node.js process CPU usage spiking to 100% for extended periods (several seconds) without corresponding I/O activity, particularly during pattern compilation phases.

緩和策と回避策

The primary remediation is to upgrade minimatch to version 11.0.7 or later, which replaces the quadratic mergeRows() key-building logic with a linear incremental hashing approach (Fix Commit). If immediate patching is not feasible, mitigations include: validating and limiting the length or complexity of user-supplied glob patterns before passing them to Minimatch; caching compiled patterns so repeated identical inputs do not re-trigger compilation; and implementing timeouts around pattern compilation operations to prevent event loop blocking (Feedly).

コミュニティの反応

The vulnerability was reported by researcher icguner and disclosed via GitHub Security Advisories on November 10, 2026. A Bluesky post from a CVE tracking account noted the disclosure shortly after publication. No significant vendor statements beyond the GitHub advisory or notable media coverage have been identified at this time (GitHub Advisory).

追加リソース


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

関連 JavaScript 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

CVE-2026-140097CRITICAL9.1
  • JavaScript logoJavaScript
  • vite
いいえはいNov 30, 2026
CVE-2026-140010HIGH8.7
  • JavaScript logoJavaScript
  • html-minifier
いいえはいNov 30, 2026
CVE-2026-140008HIGH8.7
  • JavaScript logoJavaScript
  • minimatch
いいえはいNov 30, 2026
CVE-2026-140102HIGH7.5
  • JavaScript logoJavaScript
  • http-proxy-middleware
いいえいいえNov 30, 2026
CVE-2026-140103MEDIUM5.4
  • JavaScript logoJavaScript
  • http-proxy-middleware
いいえはいNov 30, 2026

無料脆弱性評価

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

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

評価のリクエスト

Wizのその他のリソース

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

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

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