npm
CVE-2026-118773
Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
- Severity
- Medium
- Published
- 30 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 14.0.2
- Exploit chance
- 0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-3g3m-2fjr-6pw4
- Sources
- OSV.dev and GitHub
Description
In glob 13.0.6, an aborted async walk rejects or emits an error but continues recursively reading directories in the background.
The root cause is that abort branches in src/walker.ts call cb() without returning. As a result, callers that rely on signal or AbortSignal.timeout() to bound glob traversal cost can still incur filesystem I/O and CPU work after the request has already been rejected.
This was reproduced on glob v13.0.6 (commit e80cb38ae60d6cbff9e75f39032a994858994d35).
The README documents that the signal option cancels the glob walk. However, in src/walker.ts, the following methods call cb() when this.signal?.aborted is true but do not return:
- GlobUtil.walkCB()
- GlobUtil.walkCB2()
- GlobUtil.walkCBSync()
- GlobUtil.walkCB2Sync()
Example vulnerable pattern:
if (this.signal?.aborted) cb()
Because execution continues after cb(), the walker still reaches processor.processPatterns(), readdirCB(), and recursive walkCB2() calls.
Affected software
| Software | Affected versions |
|---|---|
globnpm · osv:npm:glob |
|
About glob
- Weekly downloads (npm)
- 556,924,992npm, 23 Nov 2026
This is the only vulnerability in glob in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-118773
- GitHub Advisory Database https://github.com/advisories/GHSA-3g3m-2fjr-6pw4