CVE-2026-118773: Glob AbortSignal Cancellation Bypass Allows Post-timeout Vulnerability

MODERATE
Advisory Identifier: GHSA-3g3m-2fjr-6pw4
CWE-400
Published
Advisory Summary

CVE-2026-118773 is a MODERATE abortsignal cancellation bypass allows post-timeout vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Glob libraries in the npm ecosystem. The issue involves abortsignal cancellation bypass allows post-timeout filesystem traversal. Remediation is available by upgrading affected packages to version 14.0.2, 13.0.7.

CVE-2026-118773 at a Glance

CVE Identifier CVE-2026-118773
GHSA Identifier GHSA-3g3m-2fjr-6pw4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Glob
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-118773

To remediate this vulnerability, upgrade all affected Glob dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

glob fixed: 14.0.2
npm install glob@14.0.2
glob fixed: 13.0.7
npm install glob@13.0.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls glob

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-118773, inspect your project dependencies using npm:

npm ls glob

Analyze the terminal output to locate any version of Glob in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.0.2), your application is affected.

Note: The npm ls glob command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Glob, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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. ### Details 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. The issue was directly demonstrated against v13.0.6. A source-history review shows the same missing-return pattern is present in tagged releases from v9.0.0 through v13.0.6. The issue affects both glob() and globStream(). Recommended fix: Change each abort branch to return immediately: if (this.signal?.aborted) return cb() ### Proof of concept Environment: - Linux x86_64 - Node.js v22.23.3 - npm 10.9.9 - glob 13.0.6 Reproduction steps: 1. Install the affected package: npm init -y npm install glob@13.0.6 2. Run the attached PoC: node poc/abort-continues-work.mjs The PoC aborts after the first readdir() call, waits briefly, and counts how many more directory reads happen after the promise has already rejected. Observed output on the vulnerable version: { "rejection": "Error: probe-abort", "readdirCalls": 1365, "readdirCallsAtReject": 5, "readdirCallsAfterReject": 1360 } Expected behavior: readdirCallsAfterReject should be 0. A second PoC using AbortSignal.timeout() also reproduces the issue: { "rejection": "TimeoutError: The operation was aborted due to timeout", "readdirCalls": 133, "readdirCallsAtReject": 1, "readdirCallsAfterReject": 132 } The same test against a patched build with return cb() in the four abort branches stops immediately: { "readdirCalls": 1, "readdirCallsAtReject": 1, "readdirCallsAfterReject": 0 } ### Impact This is an availability issue. Applications that expose globbing over attacker-influenced patterns or attacker-controlled directory trees and use AbortSignal / AbortSignal.timeout() as a traversal budget can still perform significant filesystem I/O and CPU work after a request has already timed out or been canceled. Repeated timed-out requests can stack background glob walks and degrade worker throughput or service availability. No confidentiality or integrity impact was observed.

CVE-2026-118773 Affected Glob Versions

2 component(s)
Fixed Versions:
14.0.213.0.7
Product / Package Ecosystem Affected Versions Fixed Version
glob
npm
≥ 14.0.0
< 14.0.2
14.0.2
glob
npm
≥ 9.0.0
< 13.0.7
13.0.7

References

Frequently Asked Questions

What is CVE-2026-118773?
CVE-2026-118773 is a security vulnerability in Glob involving AbortSignal cancellation bypass allows post-timeout filesystem traversal under CWE-400: Uncontrolled Resource Consumption.
Which Glob versions are affected?
Affected versions include releases prior to 14.0.2, 13.0.7 across affected packages: glob.
What version fixes CVE-2026-118773?
Upgrading to 14.0.2, 13.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is glob affected?
Yes, glob is affected in releases prior to 14.0.2, 13.0.7. Upgrade your dependency to 14.0.2, 13.0.7 or later.
What CWE is associated with CVE-2026-118773?
CVE-2026-118773 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2026-118773?
Run the dependency tree command: 'npm ls glob'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3g3m-2fjr-6pw4",
  "modified" : "2026-11-30T15:53:20Z",
  "published" : "2026-10-30T23:09:11Z",
  "aliases" : [ "CVE-2026-118773" ],
  "summary" : "Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal",
  "details" : "### Summary\n\nIn glob 13.0.6, an aborted async walk rejects or emits an error but continues recursively reading directories in the background.\n\nThe 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.\n\n### Details\n\nThis was reproduced on glob v13.0.6 (commit e80cb38ae60d6cbff9e75f39032a994858994d35).\n\nThe 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:\n\n- GlobUtil.walkCB()\n- GlobUtil.walkCB2()\n- GlobUtil.walkCBSync()\n- GlobUtil.walkCB2Sync()\n\nExample vulnerable pattern:\n\nif (this.signal?.aborted) cb()\n\nBecause execution continues after cb(), the walker still reaches processor.processPatterns(), readdirCB(), and recursive walkCB2() calls.\n\nThe issue was directly demonstrated against v13.0.6. A source-history review shows the same missing-return pattern is present in tagged releases from v9.0.0 through v13.0.6.\n\nThe issue affects both glob() and globStream().\n\nRecommended fix:\nChange each abort branch to return immediately:\n\nif (this.signal?.aborted) return cb()\n\n### Proof of concept\n\nEnvironment:\n- Linux x86_64\n- Node.js v22.23.3\n- npm 10.9.9\n- glob 13.0.6\n\nReproduction steps:\n\n1. Install the affected package:\n   npm init -y\n   npm install glob@13.0.6\n\n2. Run the attached PoC:\n   node poc/abort-continues-work.mjs\n\nThe PoC aborts after the first readdir() call, waits briefly, and counts how many more directory reads happen after the promise has already rejected.\n\nObserved output on the vulnerable version:\n\n{\n  \"rejection\": \"Error: probe-abort\",\n  \"readdirCalls\": 1365,\n  \"readdirCallsAtReject\": 5,\n  \"readdirCallsAfterReject\": 1360\n}\n\nExpected behavior:\nreaddirCallsAfterReject should be 0.\n\nA second PoC using AbortSignal.timeout() also reproduces the issue:\n\n{\n  \"rejection\": \"TimeoutError: The operation was aborted due to timeout\",\n  \"readdirCalls\": 133,\n  \"readdirCallsAtReject\": 1,\n  \"readdirCallsAfterReject\": 132\n}\n\nThe same test against a patched build with return cb() in the four abort branches stops immediately:\n\n{\n  \"readdirCalls\": 1,\n  \"readdirCallsAtReject\": 1,\n  \"readdirCallsAfterReject\": 0\n}\n\n### Impact\n\nThis is an availability issue.\n\nApplications that expose globbing over attacker-influenced patterns or attacker-controlled directory trees and use AbortSignal / AbortSignal.timeout() as a traversal budget can still perform significant filesystem I/O and CPU work after a request has already timed out or been canceled.\n\nRepeated timed-out requests can stack background glob walks and degrade worker throughput or service availability.\n\nNo confidentiality or integrity impact was observed.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "glob"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.0.0"
      }, {
        "fixed" : "14.0.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 14.0.1"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "glob"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "13.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/isaacs/node-glob/security/advisories/GHSA-3g3m-2fjr-6pw4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-118773"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isaacs/node-glob/issues/664"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isaacs/node-glob/commit/4682e8c9babee1b385202ede36389634e12076d7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isaacs/node-glob/commit/d94a8c8d0a89b89436d9612ebea6f9995104e05e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/isaacs/node-glob"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isaacs/node-glob/releases/tag/v14.0.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-30T23:09:11Z",
    "nvd_published_at" : "2026-10-29T19:17:19Z"
  }
}