CVE-2026-144291: 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.0.6
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using npm/glob before version 14.0.6 are affected when they use an absolute ignore pattern and run with a root or cwd path containing braces.
What would an attacker need to influence to trigger the problem?
The relevant glob operation must process a brace-containing root or cwd path while an absolute ignore rule is in use. Under those conditions, brace expansion can prevent the ignore matcher from matching the intended literal path.
How can I determine whether my application may already be affected?
Check whether it uses a glob version earlier than 14.0.6, passes absolute ignore patterns, and operates in directories whose root or cwd contains brace characters. If so, verify that files expected to be ignored are not being returned by matching operations.
What should be done if an immediate upgrade is not possible?
Avoid using brace-containing paths as the root or cwd for glob operations that rely on absolute ignore patterns. Upgrade to version 14.0.6 when possible.