Skip to content

chore(security): resolve pnpm audit vulnerabilities (2 moderate) - #610

Merged
dinohamzic merged 1 commit into
mainfrom
chore/pnpm-audit-2026-11-04
Nov 4, 2026
Merged

dinohamzic merged 1 commit into
mainfrom
chore/pnpm-audit-2026-11-04

Conversation

@tkislan

@tkislan tkislan commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

pnpm audit on main reports two advisories published on 2026-10-30. They fail the "Audit - All" job (.github/workflows/ci.yml:335, pnpm audit). "Audit - Production" (ci.yml:312, pnpm audit --prod) passes, because both packages are dev-only. This PR fixes both.

Advisory Package Severity Path Fixed in
GHSA-3g3m-2fjr-6pw4 glob 13.0.6 moderate dev: license-checker-rseidelsohn > read-installed-packages > read-package-json > glob 14.0.2
GHSA-g3hv-75wg-m249 minimatch 10.2.6 moderate dev: … > read-package-json > glob > minimatch 11.0.1

Precedent

Transitive advisories here are fixed by raising an open-ended floor in the root pnpm.overrides, editing an existing entry in place rather than adding a scoped one (#333, #387, #434, #438, #547, #601). Both packages already have such floors: glob from #153 and minimatch from #295 and #333. Both earlier floors already pushed read-package-json's glob ^10.2.2, and glob's own minimatch range, up a major. Fix versions are checked against renovate's 24h minimumReleaseAge. Registry metadata (libc:/deprecated:) that a regenerated lockfile adds to unchanged entries is removed, as in #588, #598 and #601.

glob

  • Decision: raise the existing override floor from >=11.1.0 to >=14.0.2, the first patched release. It resolves to 14.0.3. The advisory covers every release from 9.0.0 through 14.0.1, so no 13.x fix exists and the fix has to cross a major. glob 14's breaking changes (the debug option, GlobWalker#walk() return type, ignore rooting, Windows UNC roots) don't touch the only consumer, read-package-json. It calls glob(pattern, { cwd, nocase, mark }), which glob 14 still exports for CommonJS. glob 14.0.2 and 14.0.3 were released on 2026-10-27 and 2026-10-28, more than 24h ago.
  • Alternative ruled out: license-checker-rseidelsohn 5.0.1 (latest, a major) replaces read-installed-packages. It still resolves glob 13.0.6 and minimatch 10.2.6, so the overrides would still be needed.
-      "glob": ">=11.1.0",
+      "glob": ">=14.0.2",

minimatch

  • Decision: raise the existing override floor from >=10.2.3 to >=11.0.1, the first patched release. It resolves to 11.0.4. Every release below 11.0.1 is affected. glob 14 declares minimatch ^11.0.0, so the two floors move together. glob is minimatch's only consumer in the tree, so minimatch 11's removed APIs (makeRe(), AST) affect nothing. 11.0.4 was released on 2026-11-02.
-      "minimatch": ">=10.2.3",
+      "minimatch": ">=11.0.1",

Lockfile

Only these entries change: glob 13.0.6 → 14.0.3, minimatch 10.2.6 → 11.0.4, path-scurry 2.0.2 → 3.0.0 (glob 14's range), the new @isaacs/nonrecursive-glob-match 1.0.3 (minimatch 11's new dependency), and read-package-json's reference to glob. glob 14 has no bin, and nothing in the repo runs a glob command. No packages/*/package.json declares glob or minimatch, so published @deepnote/* packages are unaffected.

Decided with the user

  • Crossing a major for both packages: the options were raising both floors, upgrading license-checker-rseidelsohn to 5.0.1 (which doesn't fix the audit), or leaving "Audit - All" failing. The user chose raising both floors.

Verification

  • pnpm audit and pnpm audit --prod: no known vulnerabilities. pnpm why -r glob minimatch shows only glob 14.0.3 and minimatch 11.0.4.
  • pnpm run license-check (the only path that loads glob): passes, and its JSON output matches main's.
  • pnpm build, typecheck, lintAndFormat, spell-check and test (190 files, 3630 tests): pass.
  • pnpm install --frozen-lockfile: passes. A second pnpm install --lockfile-only --config.minimum-release-age=1440 changes nothing.

Not fixed

Nothing. Both audits are clean.

Summary by CodeRabbit

  • Chores
    • Updated minimum version requirements for two internal packages. No user-facing changes are noted.

- glob: raise the override floor to >=14.0.2 (GHSA-3g3m-2fjr-6pw4);
  resolves to 14.0.3. The advisory covers every release from 9.0.0
  through 14.0.1, so no 13.x fix exists
- minimatch: raise the override floor to >=11.0.1 (GHSA-g3hv-75wg-m249);
  resolves to 11.0.4. Every release below 11.0.1 is affected. glob 14
  declares minimatch ^11.0.0

Both packages are reached only through the dev-only
license-checker-rseidelsohn > read-installed-packages >
read-package-json path. license-checker-rseidelsohn 5.0.1 still
resolves glob 13.0.6 and minimatch 10.2.6, so upgrading it does not
remove the need for the overrides. path-scurry moves 2.0.2 -> 3.0.0
and @isaacs/nonrecursive-glob-match 1.0.3 is added as dependencies of
the new glob and minimatch.
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pnpm override minimum for glob changes from >=11.1.0 to >=14.0.2. The minimum for minimatch changes from >=10.2.3 to >=11.0.1. The intervening overrides remain unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: jamesbhobbs, dinohamzic

Merge Risk: Minimal · up to 1dd34

The dependency override changes are consistent with the lockfile and declared runtime support, so the PR is mergeable.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating pnpm overrides to resolve two moderate audit vulnerabilities.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Updates Docs Passed PASS: This PR only updates dependency override floors and the lockfile. It does not implement a user-facing feature, so documentation updates are not required. The external OSS documentation and priva…
Full details: Updates Docs

Explanation

PASS: This PR only updates dependency override floors and the lockfile. It does not implement a user-facing feature, so documentation updates are not required. The external OSS documentation and private roadmap repositories were not inspected; verify them separately if project policy requires entries for security maintenance.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Biome (2.5.15)
package.json

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 9bfa69b2-6c74-4a28-9a6a-ac563f1477ca
Commits

Reviewing files that changed from the base of the PR and between e4dfb47 and 1dd34a1.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 1
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.58%. Comparing base (e4dfb47) to head (1dd34a1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #610   +/-   ##
=======================================
  Coverage   90.58%   90.58%           
=======================================
  Files         218      218           
  Lines       12718    12718           
  Branches     3573     3573           
=======================================
  Hits        11520    11520           
  Misses       1195     1195           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tkislan
tkislan marked this pull request as ready for review November 4, 2026 13:14
@tkislan
tkislan requested a review from a team as a code owner November 4, 2026 13:14
@dinohamzic
dinohamzic merged commit f009380 into main Nov 4, 2026
22 checks passed
@dinohamzic
dinohamzic deleted the chore/pnpm-audit-2026-11-04 branch November 4, 2026 14:22
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.

2 participants