Skip to content

chore(deps): upgrade glob to v14 to fix GHSA-3g3m-2fjr-6pw4 - #16556

Open
bertolo1988 wants to merge 3 commits into
jestjs:mainfrom
bertolo1988:fix/glob-v14-ghsa-3g3m-2fjr-6pw4
Open

bertolo1988 wants to merge 3 commits into
jestjs:mainfrom
bertolo1988:fix/glob-v14-ghsa-3g3m-2fjr-6pw4

Conversation

@bertolo1988

Copy link
Copy Markdown

Summary

Fixes the moderate advisory GHSA-3g3m-2fjr-6pw4 (CVE-2026-118773): in glob <= 14.0.1 the abort branches in src/walker.ts (GlobUtil.walkCB, GlobUtil.walkCB2, GlobUtil.walkCBSync, GlobUtil.walkCB2Sync) call cb() without return, so a cancelled walk (e.g. via AbortSignal.timeout()) continues recursively reading directories in the background.

Moves jest's direct glob dependency from ^13.0.6 to ^14.0.3 in:

  • jest-config
  • jest-runtime
  • jest-reporters
  • root devDependencies

^14.0.3 is chosen deliberately rather than ^14.0.0: 14.0.0–14.0.2 declare minimatch@^11.0.0, which still admits the unpatched 11.0.0, while 14.0.3 requires minimatch@^11.0.2 and therefore also excludes minimatch from the GHSA-g3hv-75wg-m249 range in the shipped tree.

Test plan

  • yarn install --immutable ✔
  • yarn build ✔
  • yarn jest packages/jest-config packages/jest-runtime packages/jest-reporters --silent ✔

Notes

glob <= 14.0.1 does not stop a walk when its signal aborts: the abort
branches in walker.ts call cb() without returning, so an aborted or
timed-out walk keeps reading directories in the background.

Bump jest's direct glob dependency from ^13.0.6 to ^14.0.3 in
jest-config, jest-runtime, jest-reporters and the root devDependencies.
^14.0.3 is the lowest 14.x that only allows minimatch ^11.0.2+ (the
release patched for GHSA-g3hv-75wg-m249); the lock resolves glob 14.0.4
with minimatch 11.0.5.

Relates to jestjs#16529.
@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@github-actions github-actions Bot added the require-changelog If a PR does requires a changelog entry label Nov 10, 2026
@netlify

netlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 77c5d73
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/6af438adbdd47305ebb75239
😎 Deploy Preview https://deploy-preview-16556--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@16556

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@16556

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@16556

create-jest

npm i https://pkg.pr.new/create-jest@16556

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@16556

expect

npm i https://pkg.pr.new/expect@16556

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@16556

jest

npm i https://pkg.pr.new/jest@16556

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@16556

jest-circus

npm i https://pkg.pr.new/jest-circus@16556

jest-cli

npm i https://pkg.pr.new/jest-cli@16556

jest-config

npm i https://pkg.pr.new/jest-config@16556

@jest/console

npm i https://pkg.pr.new/@jest/console@16556

@jest/core

npm i https://pkg.pr.new/@jest/core@16556

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@16556

jest-diff

npm i https://pkg.pr.new/jest-diff@16556

jest-docblock

npm i https://pkg.pr.new/jest-docblock@16556

jest-each

npm i https://pkg.pr.new/jest-each@16556

@jest/environment

npm i https://pkg.pr.new/@jest/environment@16556

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@16556

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@16556

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@16556

@jest/expect

npm i https://pkg.pr.new/@jest/expect@16556

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@16556

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@16556

@jest/globals

npm i https://pkg.pr.new/@jest/globals@16556

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@16556

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@16556

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@16556

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@16556

jest-message-util

npm i https://pkg.pr.new/jest-message-util@16556

jest-mock

npm i https://pkg.pr.new/jest-mock@16556

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@16556

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@16556

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@16556

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@16556

jest-resolve

npm i https://pkg.pr.new/jest-resolve@16556

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@16556

jest-runner

npm i https://pkg.pr.new/jest-runner@16556

jest-runtime

npm i https://pkg.pr.new/jest-runtime@16556

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@16556

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@16556

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@16556

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@16556

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@16556

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@16556

@jest/transform

npm i https://pkg.pr.new/@jest/transform@16556

@jest/types

npm i https://pkg.pr.new/@jest/types@16556

jest-util

npm i https://pkg.pr.new/jest-util@16556

jest-validate

npm i https://pkg.pr.new/jest-validate@16556

jest-watcher

npm i https://pkg.pr.new/jest-watcher@16556

jest-worker

npm i https://pkg.pr.new/jest-worker@16556

pretty-format

npm i https://pkg.pr.new/pretty-format@16556

commit: 77c5d73

@bertolo1988

Copy link
Copy Markdown
Author

recheck

@bertolo1988

Copy link
Copy Markdown
Author

/easycla

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

require-changelog If a PR does requires a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant