NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

CVE-2026-144291 — glob

Fix: isaacs/node-glob@17cb207

CVE-2026-144291 is a Improper Input Validation vulnerability in glob. A fix is available for glob — see the affected versions and patch details below.

Glob: Absolute `ignore` pattern silently bypassed when `root`/`cwd` path contains braces

Also known asGHSA-c6wh-w8c3-cv3g
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-144291.

EPSS Exploitation Probability

via FIRST.org ↗
0.9%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs61th percentile — riskier than 61% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

1 pkg affected
📦glob

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

Description

Summary

glob's ignore option composes an absolute ignore pattern by pasting the resolved root/cwd path into a glob string, then re-parsing that string with minimatch. The path is escaped with minimatch's escape(), but escape() only escapes { and } when magicalBraces is enabled — which glob does not do. A root path containing braces is therefore brace-expanded during re-parsing, and the resulting ignore pattern no longer matches the real path. The exclusion is silently dropped and the excluded file is returned.

Root cause

src/ignore.ts:84-88

const slashRoot = cwd?.resolve(root ?? '/').fullpath() ?? '/'
this.slashRoot = escape(
  slashRoot.replace(/\\/g, '/').replace(/\/$/, ''),
  { windowsPathsNoEscape },        // <-- no `magicalBraces`
)

src/ignore.ts:121-125

const glob =
  p.root() === '/' ?
    `${this.slashRoot}/${p.rest()?.globString() ?? ''}`
  : p.globString()
const m = new Minimatch(glob, this.mmopts)   // <-- brace expansion happens here

The composed string is parsed as a glob, so {7,8} becomes two alternatives.

Why this is a vulnerability and not a cosmetic issue

The root option exists precisely so that absolute patterns and absolute ignore rules are anchored at a chosen directory. The two code paths handle root differently:

pathroot handlingbraces in root
pattern (src/processor.ts)t.resolve(this.opts.root) — path resolutionworks correctly
ignore (src/ignore.ts)pasted into a glob stringsilently broken

So the pattern still finds the file at the literal path, while the ignore rule that was supposed to exclude it stops matching. The caller asked for ignore: ['/skip.log'] anchored at root and did not get it.

Impact

ignore is routinely used to exclude secrets, credentials, lockfiles, build artifacts, or tenant-scoped paths. When the rule is dropped, those files are returned to the caller instead.

The trigger is the path, not the ignore pattern, so it is reachable when the root/cwd path is derived from externally supplied data (tenant id, project name, upload directory, archive extraction path).

Reproduction

import { Volume, createFsFromVolume } from 'memfs'
import { glob } from 'glob'

const vol = new Volume()
const fs = createFsFromVolume(vol)
vol.fromJSON({
  '/root{7,8}/keep.txt': 'x',
  '/root{7,8}/skip.log': 'x',
})

const res = await glob('*', {
  cwd: '/root{7,8}',
  root: '/root{7,8}',
  fs,
  ignore: ['/skip.log'],
  platform: 'posix',
})

console.log(res)   // [ 'keep.txt', 'skip.log' ]  <-- skip.log should be ignored

Control with a plain root path:

vol.fromJSON({ '/root/keep.txt': 'x', '/root/skip.log': 'x' })
await glob('*', {
  cwd: '/root', root: '/root', fs, ignore: ['/skip.log'], platform: 'posix',
})
// [ 'keep.txt' ]  <-- ignore correctly enforced

Mechanism proof

const { Ignore } = await import('glob')
const { PathScurryPosix } = await import('path-scurry')

const ig = new Ignore(['/skip.log'], { platform: 'posix', root: '/root{7,8}' }, scurry.cwd)
ig.slashRoot                    // "/root{7,8}"
ig.absolute[0].set              // [['', 'root7', 'skip.log'], ['', 'root8', 'skip.log']]
ig.absolute[0].match('/root{7,8}/skip.log')  // false  <-- the real path
ig.absolute[0].match('/root7/skip.log')      // true   <-- a path that does not exist

Fix

Both issues are in src/ignore.ts. A minimal change closes them:

     this.mmopts = {
+      braceExpandMax: 10_000,
       dot: true,
       nobrace,
       nocase,
@@
     this.slashRoot = escape(
       slashRoot.replace(/\\/g, '/').replace(/\/$/, ''),
-      { windowsPathsNoEscape },
+      { magicalBraces: true, windowsPathsNoEscape },
     )
  • magicalBraces: true makes escape() escape { and } as well, so the composed path stays literal and is not brace-expanded on re-parse.
  • braceExpandMax: 10_000 makes the ignore path use the same limit as the pattern path.

Verified: with this patch the ignore matcher becomes [['', 'root{7,8}', 'skip.log']] (one row, literal), matches /root{7,8}/skip.log, and the amplified ignore payload is rejected with the same error as the pattern path.

Regression tests are in test/ignore-braces.ts; they fail against the unpatched source and pass with the patch. The existing suite (test/ignore.ts, test/custom-ignore.ts, test/ignore-root.ts, test/pattern.ts, test/root.ts, test/absolute.ts) remains green: 167/167.

Tested on published [email protected] (current HEAD f26bdac). Earlier versions not checked. Fixed in: 14.0.6

Related hardening (same file)

src/ignore.ts:71-83 builds mmopts without braceExpandMax, while the pattern path sets braceExpandMax: 10_000 (src/glob.ts:528). Ignore patterns therefore fall back to minimatch's 100_000 default. The patch above already includes this one-line change.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmgloball versions14.0.6npm install glob@14.0.6

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for glob, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update glob to 14.0.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-144291 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

### Summary `glob`'s `ignore` option composes an absolute ignore pattern by pasting the resolved `root`/`cwd` path into a glob *string*, then re-parsing that string with `minimatch`. The path is escaped with `minimatch`'s `escape()`, but `escape()` only escapes `{` and `}` when `magicalBraces` is enabled — which `glob` does not do. A root path containing braces is therefore brace-expanded during re-parsing, and the resulting ignore pattern no longer matches the real path. The exclusion is silently dropped and the excluded file is returned. ### Root cause `src/ignore.ts:84-88` ```ts const s
O3 Security · Impact-Aware SCA

Is CVE-2026-144291 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2026-144291: glob — Fixed in 14.0.6