Skip to content

fix(deps): upgrade glob to ^14.0.2 to resolve glob and minimatch CVEs - #11529

Open
joehan wants to merge 1 commit into
mainfrom
joehanley/resolve-glob-minimatch-cves
Open

joehan wants to merge 1 commit into
mainfrom
joehanley/resolve-glob-minimatch-cves

Conversation

@joehan

@joehan joehan commented Nov 16, 2026

Copy link
Copy Markdown
Member

Description

Upgrades glob from ^10.5.0 to ^14.0.2 (14.0.6) and adds glob overrides across root package.json and scripts/publish/firebase-docker-image/package.json to remediate two security advisories reported against /usr/local/node_packages/node_modules/ in the firebase-cli Docker image:

Additional compatibility fixes uncovered while upgrading:

  • Replaced the unscoped "minimatch": "^10.2.3" override in scripts/publish/firebase-docker-image/package.json with "glob": "^14.0.2". Overriding minimatch across majors clobbered firebase-tools (^3.0.4 -> 3.1.5) and superstatic (^6.1.6 -> 6.2.3), which call require("minimatch")(path, pattern) as a function (unavailable in minimatch >= 9), whereas 3.1.5, 5.1.9 (readdir-glob), and 6.2.3 (superstatic) are unaffected by CVE-2026-118764 (>= 7.0.0).
  • Removed the cross-major "brace-expansion": "^1.1.18" override in root package.json ([email protected] does not export .expand, which minimatch@11 calls on brace patterns), allowing each major (1.1.21, 2.1.7, 5.0.12) to resolve to its patched release.
  • Preserved glob@^7 on dev-only flat-cache (rimraf@3) and typescript-json-schema, which are unaffected by CVE-2026-118773 (>= 9.0.0).
  • Added min-release-age-exclude[] entries in .npmrc for the < 21-day-old glob@14 / minimatch@11 security release chain (glob, minimatch, path-scurry, @isaacs/nonrecursive-glob-match).

Scenarios Tested

  • Lockfile idempotency verified with [email protected] (npm install --package-lock-only --ignore-scripts && npm run sanitize:lockfile) and compatibility verified with [email protected] ci --dry-run.
  • npm run build and npm run generate:json-schema (zero diff on schema/*.json).
  • Runtime smoke checks on both Node 24.19.0 and Node 20.18.3 (standalone binary runtime) covering glob / glob.sync brace expansion, fsAsync.readdirRecursive (minimatch@3), and superstatic pattern matching (minimatch@6).
  • npm run lint:other, eslint src/, and npm run mocha (6,014 passing).

Sample Commands

N/A

@joehan joehan self-assigned this Nov 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the glob dependency to version ^14.0.2 and its transitive dependencies (such as minimatch) to address security advisories. The changes include adding exclusions in .npmrc, updating dependency versions and overrides in package.json, and regenerating the lockfile for the Firebase Docker image publisher. There are no review comments, so I have no feedback to provide.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant