Skip to content

fix(deps): bump cross-spawn, terser and node-forge, and move Jest's glob 10 and minimatch 9 to their patched majors - #42

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/sec-rescan
Dec 4, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/sec-rescan

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Fixes the alerts Dependabot opened on its rescan after #41:

The first three stay inside their dependents' ranges and are lock-only.

minimatch (major). The remaining vulnerable copies were minimatch@9.0.9 under the glob@10.5.0 that each nested test-exclude@7.0.2 requires (glob: ^10.4.1, under @jest/core, @jest/reporters, jest-config, jest-expo, jest-runner, jest-runtime and jest-snapshot). The only fix is minimatch 11. glob 10 builds its matchers on minimatch 9's RegExp set, so glob moves with it. Two more scoped overrides do this, next to the existing glob 13 and minimatch 10 ones:

"glob@^10.0.0": "^14.0.6",
"minimatch@^9.0.0": "^11.0.10"
  • Consumer check. test-exclude@7.0.2 uses require('glob').glob with glob.sync(patterns, { cwd, nodir, dot, posix, ignore }) and glob(patterns, opts), plus minimatch(path, pattern, { dot }). glob 14 still exposes glob.sync and all of those options. None of the removed APIs are used (minimatch 11: makeRe, Minimatch#regexp, AST, debug, matchOne; glob 14: isRegExp, walker Set results, MatchRecord#entries). The same override shipped in fix(deps): move glob 10/13 and minimatch 9/10 copies to their patched majors beep#151.
  • Untouched. test-exclude@6.0.0 keeps glob@7 and minimatch@3.1.5, which are outside the advisory range (>= 7.4.0).
  • Lockfile. The only removed entries are glob 10's own dependency tree (jackspeak, @isaacs/cliui, foreground-child, path-scurry@1, lru-cache@10, brace-expansion@2) and the nested glob and minimatch copies.

Verified (Node 22, npm 11, CI env vars)

  • npm ci, npm run build (expo export) and npx tsc --noEmit pass.
  • A throwaway Jest test run with --coverage reports per-file coverage, which exercises test-exclude on glob 14.
  • glob.sync with test-exclude's options returns the expected files.
  • npm audit reports no vulnerabilities.

🤖 Generated with Claude Code

…lob 10 and minimatch 9 to their patched majors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@appwrite

appwrite Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
7f4cf61 Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

The locked install succeeded with npm's audit reporting zero vulnerabilities; the build attempt failed only because the sandbox omits referenced binary assets, unrelated to this dependency-only diff.

Adds scoped npm overrides to move Jest's glob 10 and minimatch 9 dependency trees to glob 14 and minimatch 11. The lockfile also updates cross-spawn, terser, and node-forge and removes the superseded dependency trees.

Walkthrough (2)
File Change
package.json Adds overrides for dependencies requiring glob 10 and minimatch 9.
package-lock.json Locks the updated packages and removes superseded nested glob/minimatch dependency trees.

Reviewed 7f4cf61

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit e34144c into main Dec 4, 2026
3 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/sec-rescan branch December 4, 2026 16:30
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