Repository navigation
chore(security): resolve pnpm audit vulnerabilities (2 high, 2 moderate) - #547
Conversation
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
|
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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe root Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The dependency override updates are consistent with the resolved lockfile versions and are ready to merge. 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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>
Summary
pnpm auditfails theAudit - AllandAudit - ProductionCI 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 existingpnpm.overridesentry in the rootpackage.jsonplus a lockfile refresh. No direct dependency changes, no new overrides.brace-expansionparseCommaParts>=4.0.0 <5.0.10>=5.0.9→>=5.0.12license-checker-rseidelsohn > read-installed-packages > read-package-json > glob > minimatchbrace-expansion>=4.0.0 <5.0.11brace-expansion{a},b}rewrite>=4.0.0 <5.0.12fast-uri>=3.0.0 <3.1.8>=3.1.7 <4→>=3.1.8 <4runtime-core > @jupyterlab/services > @jupyterlab/settingregistry > ajvandmcp > @modelcontextprotocol/sdk > ajvDecisions
brace-expansionfloor for three advisories. Each advisory has its own minimum (5.0.10, 5.0.11, 5.0.12);>=5.0.12covers 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.8and keepsexpand()'s signature; the newmaxDepth/maxRewriteslimits (default 1000) only change output for pathological patterns.license-checker-rseidelsohnbump. 5.0.1 (latest) requires Node >=24 and npm >=11 (the repo pins Node 22.21.0), and still reachesbrace-expansion@^5through@npmcli/*> glob > minimatch.fast-urikeeps its<4bound.ajv@8.20.0(npm latest) declaresfast-uri: ^3.0.1; a bare>=3.1.8would resolve to 4.2.1. The fix is backported to 3.x under thethreedist-tag. No newerajv,@modelcontextprotocol/sdkor@jupyterlab/*release changes this.brace-expansiononly receives hard-coded glob patterns fromread-package-json, in the license-check CI job.fast-uriis used by ajv to resolve schema$id/$ref. The 3.1.7 → 3.1.8 diff only lowercases percent-decoded hosts.Verification
pnpm auditandpnpm audit --prod: no known vulnerabilitiespnpm install --frozen-lockfile,pnpm build,pnpm typecheck,pnpm test(3351 tests),pnpm run license-check,pnpm lintAndFormat: passpnpm test:integration(needsdeepnote-toolkit), left to the Runtime Integration CI job🤖 Generated with Claude Code
https://claude.ai/code/session_01BV1v69PKW4CNZs9aQNP5Bc
Summary by CodeRabbit