CVE-2026-144291
Glob: Absolute `ignore` pattern silently bypassed when `root`/ `cwd` path contains braces
- Severity
- 6.3MediumNetwork attack, no privileges, no user interactionCVSS 4.0, CVE List
- Exploitation
- Proof of conceptCISA reports one, no source links it
- Exploit chance
- 0.90% in 30 daysPercentile61stEPSS, scored
- Listed fix
14.0.6for globFrom GitHub Advisories3 other affected packages
Overview
Glob matches files using patterns the shell uses. Prior to 14.0.6, the glob ignore option composes absolute ignore patterns by inserting an escaped root/cwd path into a new glob string in src/ignore.ts, but the escape operation does not preserve braces as literal characters. When an affected application uses an absolute ignore rule and processes a brace-containing root/cwd path, the path is brace-expanded during re-parsing, the ignore matcher no longer matches the real literal path, and files intended to be excluded can be returned to the caller. This issue is fixed in version 14.0.6.
CVSS 4.0 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- None
Impact on the vulnerable system
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Impact on subsequent systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploit chance over time
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 4
| Package | Affected | Fixed |
|---|---|---|
globnpm | through 14.0.5 | 14.0.6 |
node-globDebian:12 | All versions, plus listed versions 10.2.7+~cs0.4.15-110.3.6+~cs0.4.15-110.3.6+~cs0.4.15-210.3.6+~cs0.4.15-310.3.6+~cs0.4.15-4 Show 12 more versionsShow less10.3.6+~cs0.4.15-510.3.6+~cs0.4.15-610.3.6+~cs0.4.15-710.3.6+~cs0.4.15-810.3.6+~cs0.4.15-913.0.6+~cs0.4.15-113.0.6+~cs0.4.15-28.0.3+~cs8.4.15-18.0.3+~cs8.4.15-28.0.3+~cs8.4.15-38.0.3+~cs8.4.15-48.1.0+~cs8.5.15-1 | None listed |
node-globDebian:13 | All versions, plus listed versions 10.2.7+~cs0.4.15-110.3.6+~cs0.4.15-110.3.6+~cs0.4.15-210.3.6+~cs0.4.15-310.3.6+~cs0.4.15-4 Show 8 more versionsShow less10.3.6+~cs0.4.15-510.3.6+~cs0.4.15-610.3.6+~cs0.4.15-710.3.6+~cs0.4.15-810.3.6+~cs0.4.15-913.0.6+~cs0.4.15-113.0.6+~cs0.4.15-28.1.0+~cs8.5.15-1 | None listed |
node-globDebian:14 | All versions, plus listed versions 10.2.7+~cs0.4.15-110.3.6+~cs0.4.15-110.3.6+~cs0.4.15-210.3.6+~cs0.4.15-310.3.6+~cs0.4.15-4 Show 8 more versionsShow less10.3.6+~cs0.4.15-510.3.6+~cs0.4.15-610.3.6+~cs0.4.15-710.3.6+~cs0.4.15-810.3.6+~cs0.4.15-913.0.6+~cs0.4.15-113.0.6+~cs0.4.15-28.1.0+~cs8.5.15-1 | None listed |
Products 1
Sources
CVE List Score usedCVSS 4.06.3
Glob: Absolute `ignore` pattern silently bypassed when `root`/`cwd` path contains braces
Glob matches files using patterns the shell uses. Prior to 14.0.6, the glob ignore option composes absolute ignore patterns by inserting an escaped root/cwd path into a new glob string in src/ignore.ts, but the escape operation does not preserve braces as literal characters. When an affected application uses an absolute ignore rule and processes a brace-containing root/cwd path, the path is brace-expanded during re-parsing, the ignore matcher no longer matches the real literal path, and files intended to be excluded can be returned to the caller. This issue is fixed in version 14.0.6.
- Record
CVE-2026-144291- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-20, CWE-693
- Updated
- 2026-12-03
EUVDEUVD-2026-143500CVSS 4.06.3
Glob matches files using patterns the shell uses. Prior to 14.0.6, the glob ignore option composes absolute ignore patterns by inserting an escaped root/cwd path into a new glob string in src/ignore.ts, but the escape operation does not preserve braces as literal characters. When an affected application uses an absolute ignore rule and processes a brace-containing root/cwd path, the path is brace-expanded during re-parsing, the ignore matcher no longer matches the real literal path, and files intended to be excluded can be returned to the caller. This issue is fixed in version 14.0.6.
- Record
EUVD-2026-143500- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Updated
- 2026-12-03
GitHub AdvisoriesGHSA-c6wh-w8c3-cv3gCVSS 4.06.3
Glob: Absolute `ignore` pattern silently bypassed when `root`/`cwd` path contains braces
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:
| path | root handling | braces in root |
|---|---|---|
| pattern (src/processor.ts) | t.resolve(this.opts.root) — path resolution | works correctly |
| ignore (src/ignore.ts) | pasted into a glob string | silently 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: truemakesescape()escape{and}as well, so the composed path stays literal and is not brace-expanded on re-parse.braceExpandMax: 10_000makes the ignore path use…
- Record
GHSA-c6wh-w8c3-cv3g- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-20, CWE-693
- Updated
- 2026-12-04
NVDCVSS 4.06.3
Glob matches files using patterns the shell uses. Prior to 14.0.6, the glob ignore option composes absolute ignore patterns by inserting an escaped root/cwd path into a new glob string in src/ignore.ts, but the escape operation does not preserve braces as literal characters. When an affected application uses an absolute ignore rule and processes a brace-containing root/cwd path, the path is brace-expanded during re-parsing, the ignore matcher no longer matches the real literal path, and files intended to be excluded can be returned to the caller. This issue is fixed in version 14.0.6.
- Record
CVE-2026-144291- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-20, CWE-693
- Updated
- 2026-12-03
OSVCVSS 4.06.3
Glob: Absolute `ignore` pattern silently bypassed when `root`/`cwd` path contains braces
Glob matches files using patterns the shell uses. Prior to 14.0.6, the glob ignore option composes absolute ignore patterns by inserting an escaped root/cwd path into a new glob string in src/ignore.ts, but the escape operation does not preserve braces as literal characters. When an affected application uses an absolute ignore rule and processes a brace-containing root/cwd path, the path is brace-expanded during re-parsing, the ignore matcher no longer matches the real literal path, and files intended to be excluded can be returned to the caller. This issue is fixed in version 14.0.6.
- Record
CVE-2026-144291- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-20, CWE-693
- Updated
- 2026-12-04
OSVDEBIAN-CVE-2026-144291CVSS 4.06.3
Glob matches files using patterns the shell uses. Prior to 14.0.6, the glob ignore option composes absolute ignore patterns by inserting an escaped root/cwd path into a new glob string in src/ignore.ts, but the escape operation does not preserve braces as literal characters. When an affected application uses an absolute ignore rule and processes a brace-containing root/cwd path, the path is brace-expanded during re-parsing, the ignore matcher no longer matches the real literal path, and files intended to be excluded can be returned to the caller. This issue is fixed in version 14.0.6.
- Record
DEBIAN-CVE-2026-144291- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-12-04
The JSON record also has the rest of 1 source description.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, key facts, references | GitHub Advisories, OSV | |
| Affected packages, other IDs, references, severity | NVD, OSV | |
| Key facts, references | CVE List | |
| Other IDs, references | OSV | |
| Other IDs, published date | EUVD | |
| Severity | NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/isaacs/node-glob/security/advisories/GHSA-c6wh-w8c3-cv3g
github.com/isaacs/node-glob/commit/17cb20749bc65a64ec44d40de2736cc587564866
github.com/isaacs/node-glob/releases/tag/v14.0.6
nvd.nist.gov/vuln/detail/CVE-2026-144291
github.com/advisories/GHSA-c6wh-w8c3-cv3g
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144291.json
security-tracker.debian.org/tracker/CVE-2026-144291