CVE-2026-137196 — Isaacs Node-glob — CWE-400 · CWE-405
`glob` sets `braceExpandMax: 10_000` when it parses *pattern* patterns, but the `Ignore` class builds its own `minimatch` options and omits `braceExpandMax` entirely, so ignore patterns fall back to minimatch's default of `100_000`. Both paths force `optimizationLevel: 2`, which is the exact precondition for minimatch's globparts amplification (CVE-2026-118764, GHSA-g3hv-75wg-m249) — minimatch's own default is `1`. The consequence is that the same payload is rejected in milliseconds when passed as a pattern, but is accepted and burns far more CPU when passed as an ignore pattern. ### Root cause `src/glob.ts:527-529` — pattern path, limit present: ```ts const mmo: MinimatchOptions = { braceExpandMax: 10_000, ...opts, ``` `src/ignore.ts:71-83` — ignore path, limit missing: ```ts this.mmopts = { dot: true, nobrace, nocase, noext, noglobstar, normalize, optimizationLevel: 2, // forced, and the amplification precondition platform, nocomment: true, nonegate: true, windowsPathsNoEscape, } // <-- no braceExpandMax ``` minimatch `>= 11.0.1` fixed CVE-2026-118764 by throwing a `RangeError` once `globParts.length >= braceExpandMax`. The pattern path caps rows at `10_000`; the ignore path allows `100_000`. The amplified rows then go through minimatch's `secondPhasePreProcess()`, which is O(n²) pairwise `partsMatch`. ### Reproduction ```js import { Volume, createFsFromVolume } from 'memfs' import { glob } from 'glob'
`glob` sets `braceExpandMax: 10_000` when it parses *pattern* patterns, but the `Ignore` class builds its own `minimatch` options and omits `braceExpandMax` entirely, so ignore patterns fall back to minimatch's default of `100_000`. Both paths force `optimizationLevel: 2`, which is the exact precondition for minimatch's globparts amplification (CVE-2026-118764, GHSA-g3hv-75wg-m249) — minimatch's own default is `1`. The consequence is that the same payload is rejected in milliseconds when passed as a pattern, but is accepted and burns far more CPU when passed as an ignore pattern. ### Root cause `src/glob.ts:527-529` — pattern path, limit present: ```ts const mmo: MinimatchOptions = { braceExpandMax: 10_000, ...opts, ``` `src/ignore.ts:71-83` — ignore path, limit missing: ```ts this.mmopts = { dot: true, nobrace, nocase, noext, noglobstar, normalize, optimizationLevel: 2, // forced, and the amplification precondition platform, nocomment: true, nonegate: true, windowsPathsNoEscape, } // <-- no braceExpandMax ``` minimatch `>= 11.0.1` fixed CVE-2026-118764 by throwing a `RangeError` once `globParts.length >= braceExpandMax`. The pattern path caps rows at `10_000`; the ignore path allows `100_000`. The amplified rows then go through minimatch's `secondPhasePreProcess()`, which is O(n²) pairwise `partsMatch`. ### Reproduction ```js import { Volume, createFsFromVolume } from 'memfs' import { glob } from 'glob'
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-137196
CVSS 6.3/10 · MEDIUM · 30.11.2026
CWE: CWE-400, CWE-405
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: glob sets braceExpandMax: 10_000 when it parses pattern patterns, but the Ignore class builds its own minimatch options and omits braceExpandMax entirely, so ignore patterns fall back to minimatch's default of 100_000. Both paths force optimizationLevel: 2, which is the exact precondition for minimatch's globparts amplification (CVE-2026-118764, GHSA-g3hv-75wg-m249) — minimatc…
Affected: isaacs node-glob
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).
🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); reduced availability or partial DoS (A:L).
🛡️ REMEDIATION
→ Apply vendor security update for isaacs node-glob.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]
FOFA Query