Skip to content

chore(security): resolve pnpm audit vulnerabilities (2 high, 2 moderate) - #547

Merged
dinohamzic merged 1 commit into
mainfrom
chore/security-audit-2026-09-30
Oct 1, 2026
Merged

dinohamzic merged 1 commit into
mainfrom
chore/security-audit-2026-09-30

Conversation

@tkislan

@tkislan tkislan commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

pnpm audit fails the Audit - All and Audit - Production CI jobs with 2 high and 2 moderate advisories in transitive dependencies. Following the convention from #434, #438, #514 and #546, each is fixed by raising an existing pnpm.overrides entry in the root package.json plus a lockfile refresh. No direct dependency changes, no new overrides.

Package Advisory Vulnerable Override Resolved Path
brace-expansion GHSA-6j4f-fj2g-mc7p (high): stack exhaustion via recursion in parseCommaParts >=4.0.0 <5.0.10 >=5.0.9 → >=5.0.12 5.0.9 → 5.0.12 dev only: license-checker-rseidelsohn > read-installed-packages > read-package-json > glob > minimatch
brace-expansion GHSA-qhr7-859c-m2p7 (high): stack exhaustion via recursion on nested brace groups >=4.0.0 <5.0.11 (same) (same) (same)
brace-expansion GHSA-q2hr-2g5m-vwhr (moderate): quadratic-time expansion of the {a},b} rewrite >=4.0.0 <5.0.12 (same) (same) (same)
fast-uri GHSA-hrr3-gc8f-f4qj (moderate): percent-encoded host letters are not lowercased >=3.0.0 <3.1.8 >=3.1.7 <4 → >=3.1.8 <4 3.1.7 → 3.1.8 prod: runtime-core > @jupyterlab/services > @jupyterlab/settingregistry > ajv and mcp > @modelcontextprotocol/sdk > ajv

Decisions

  • Override floors, not a lockfile-only refresh. A refresh alone would resolve the patched versions today, but the old floors would still admit the vulnerable ones. Raising the floor makes them unreachable, as in chore(security): resolve pnpm audit vulnerabilities (4 high, 2 moderate) #514.
  • One brace-expansion floor for three advisories. Each advisory has its own minimum (5.0.10, 5.0.11, 5.0.12); >=5.0.12 covers all three. No 6.x exists, so the bare floor cannot cross a major. 5.0.12 fits minimatch 10.2.6's ^5.0.8 and keeps expand()'s signature; the new maxDepth/maxRewrites limits (default 1000) only change output for pathological patterns.
  • No license-checker-rseidelsohn bump. 5.0.1 (latest) requires Node >=24 and npm >=11 (the repo pins Node 22.21.0), and still reaches brace-expansion@^5 through @npmcli/* > glob > minimatch.
  • fast-uri keeps its <4 bound. ajv@8.20.0 (npm latest) declares fast-uri: ^3.0.1; a bare >=3.1.8 would resolve to 4.2.1. The fix is backported to 3.x under the three dist-tag. No newer ajv, @modelcontextprotocol/sdk or @jupyterlab/* release changes this.
  • Exposure is minimal in both cases. brace-expansion only receives hard-coded glob patterns from read-package-json, in the license-check CI job. fast-uri is used by ajv to resolve schema $id/$ref. The 3.1.7 → 3.1.8 diff only lowercases percent-decoded hosts.

Verification

  • pnpm audit and pnpm audit --prod: no known vulnerabilities
  • pnpm install --frozen-lockfile, pnpm build, pnpm typecheck, pnpm test (3351 tests), pnpm run license-check, pnpm lintAndFormat: pass
  • Not run locally: pnpm test:integration (needs deepnote-toolkit), left to the Runtime Integration CI job

🤖 Generated with Claude Code

https://claude.ai/code/session_01BV1v69PKW4CNZs9aQNP5Bc

Summary by CodeRabbit

  • Chores
    • Updated internal project configuration. No user-visible changes.

pnpm audit fails the Audit CI jobs with four advisories in transitive
dependencies:

- brace-expansion 5.0.9, dev only, via license-checker-rseidelsohn >
  read-installed-packages > read-package-json > glob > minimatch:
  GHSA-6j4f-fj2g-mc7p (high, fixed in 5.0.10) and GHSA-qhr7-859c-m2p7
  (high, fixed in 5.0.11), stack exhaustion from uncontrolled recursion;
  GHSA-q2hr-2g5m-vwhr (moderate, fixed in 5.0.12), quadratic-time
  expansion of the `{a},b}` rewrite.
- fast-uri 3.1.7, production, via ajv from runtime-core >
  @jupyterlab/services and mcp > @modelcontextprotocol/sdk:
  GHSA-hrr3-gc8f-f4qj (moderate, fixed in 3.1.8), percent-encoded host
  letters are not lowercased.

Raise the existing pnpm.overrides floors (brace-expansion >=5.0.9 ->
>=5.0.12, fast-uri >=3.1.7 <4 -> >=3.1.8 <4) and refresh the lockfile.
One brace-expansion floor clears all three of its advisories. fast-uri
keeps its <4 bound because ajv 8.20.0 declares fast-uri ^3.0.1 and the
fix is backported to 3.x under the `three` dist-tag.

No direct dependency bump can carry either fix: license-checker-rseidelsohn
5.x still reaches brace-expansion ^5 through minimatch and requires
Node >=24, and ajv 8.20.0 is already the latest release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BV1v69PKW4CNZs9aQNP5Bc
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: f087a2de-2f0f-4131-b1ae-f1aa178e4e3d

📥 Commits

Reviewing files that changed from the base of the PR and between 8726179 and 3efbb90.

⛔ 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; 6 remain after this review.


📝 Walkthrough

Walkthrough

The root pnpm.overrides minimum version for brace-expansion changed from >=5.0.9 to >=5.0.12. The minimum for fast-uri changed from >=3.1.7 to >=3.1.8, with the <4 upper bound unchanged. Other listed overrides remain unchanged.

Priority: ➖ Normal

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

Change: Other

Suggested reviewers: jamesbhobbs

Merge Risk: ⚪ Minimal · up to 3efbb

The dependency override updates are consistent with the resolved lockfile versions and are ready to merge.

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 The pull request does not implement a feature. It only raises brace-expansion and fast-uri security override floors and refreshes pnpm-lock.yaml. No documentation update is required for this che…
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the security-focused dependency updates that resolve reported pnpm audit vulnerabilities.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.98%. Comparing base (8726179) to head (3efbb90).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #547   +/-   ##
=======================================
  Coverage   89.98%   89.98%           
=======================================
  Files         211      211           
  Lines       12372    12372           
  Branches     3460     3460           
=======================================
  Hits        11133    11133           
  Misses       1236     1236           
  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 September 30, 2026 18:26
@tkislan
tkislan requested a review from a team as a code owner September 30, 2026 18:26
@dinohamzic
dinohamzic merged commit 77e9085 into main Oct 1, 2026
22 checks passed
@dinohamzic
dinohamzic deleted the chore/security-audit-2026-09-30 branch October 1, 2026 07:16
jamesbhobbs added a commit that referenced this pull request Oct 1, 2026
The branch was cut before #546/#547 raised the `undici` override to 6.28.1.
The merge kept main's `undici@6.28.1` package entry alongside the
`undici: 6.28.0` snapshot reference introduced with `@ai-sdk/provider-utils`,
so `pnpm install --frozen-lockfile` failed with
ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY and took every CI job with it.

Also document the agent providers in the runtime-core README, per the
documentation check added in #526.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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