Repository navigation
chore(deps): update dependency glob to v14 [security] - #263
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
10.5.0→14.0.6Glob :
ignorepatterns lack the braceExpandMax limit applied topatternCVE-2026-137196 / GHSA-qxr8-q827-836c
More information
Details
globsetsbraceExpandMax: 10_000when it parses pattern patterns, but theIgnoreclass builds its ownminimatchoptions and omitsbraceExpandMaxentirely, so ignore patterns fall back to minimatch's default of100_000. Both paths forceoptimizationLevel: 2, which is the exact precondition for minimatch's globparts amplification (CVE-2026-118764, GHSA-g3hv-75wg-m249) — minimatch's own default is1.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:src/ignore.ts:71-83— ignore path, limit missing:minimatch
>= 11.0.1fixed CVE-2026-118764 by throwing aRangeErroronceglobParts.length >= braceExpandMax. The pattern path caps rows at10_000; the ignore path allows100_000. The amplified rows then go through minimatch'ssecondPhasePreProcess(), which is O(n²) pairwisepartsMatch.Reproduction
Measured on the published
glob@14.0.4:Impact
An attacker who can influence ignore patterns can force disproportionate CPU consumption on the event loop.
Fix
Issue is 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 thecomposed path stays literal and is not brace-expanded on re-parse.
braceExpandMax: 10_000makes the ignore path use the same limit as thepattern 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
glob@14.0.4(current HEAD f26bdac). Earlier versions not checked.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
isaacs/node-glob (glob)
v14.0.6Compare Source
ignorepatterns lack the braceExpandMax limit applied topatternFixes GHSA-qxr8-q827-836c: GHSA-qxr8-q827-836c
v14.0.5Compare Source
v14.0.4Compare Source
v14.0.3Compare Source
v14.0.2Compare Source
v14.0.1Compare Source
v14.0.0Compare Source
v13.0.7Compare Source
v13.0.6Compare Source
v13.0.5Compare Source
v13.0.4Compare Source
v13.0.3Compare Source
v13.0.2Compare Source
v13.0.1Compare Source
v13.0.0Compare Source
v12.0.0Compare Source
v11.1.0Compare Source
v11.0.3Compare Source
v11.0.2Compare Source
v11.0.1Compare Source
v11.0.0Compare Source
Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.