CVE-2026-144291
### 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 slashRoot = cwd?.resolve(root ?? '/').fullpath() ?? '/' this.slashRoot = escape( slashRoot.replace(/\\/g, '/').replace(/\/$/, ''), { windowsPathsNoEscape }, // <-- no `magicalBraces` ) ``` `src/ignore.ts:121-125` ```ts 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
Properties
- Severity
- medium
- Summary
- Glob: Absolute `ignore` pattern silently bypassed when `root`/`cwd` path contains braces
- Nvd fetched at
- 2026-12-06T11:16:09.893609+00:00
- Epss score
- 0.00904
- Cvss severity
- MEDIUM
- Cvss score
- 6.3
- Retrieved at
- 2026-12-06T11:17:52+00:00
- Ghsa published
- 2026-12-04T21:47:55Z
- Source url
- https://github.com/advisories/GHSA-c6wh-w8c3-cv3g
- Ghsa updated
- 2026-12-04T21:47:58Z
- Ghsa id
- GHSA-c6wh-w8c3-cv3g
- Last source
- FIRST EPSS
- Score
- 6.3
- Cvss version
- 4.0
- Cve id
- CVE-2026-144291
- Cvss vector
- 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
- First seen by Signal
- 2026-12-03T18:53:57+00:00
- Name
- CVE-2026-144291
- Is ghsa only
- false
- Vector
- 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
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph