Repository navigation
chore(security): resolve pnpm audit vulnerabilities (1 high) - #551
Conversation
pnpm audit fails the Audit - All CI job with one advisory in a dev-only transitive dependency: - braces 3.0.3, via lint-staged 16.2.5 > micromatch 4.0.8: GHSA-vfj7-8cjw-p6xm (high, CVE-2026-93687), stack exhaustion from deeply nested brace patterns. Every published version (<=3.0.3) is affected and there is no patched release. No override can fix this: braces has no patched version, and micromatch 4.0.8 is its latest release and still depends on braces ^3.0.3. Instead, bump the direct devDependency lint-staged 16.2.5 -> 16.4.0, whose only change is replacing micromatch with picomatch. braces, micromatch and their sub-dependencies leave the lockfile; picomatch 4.0.5 and tinyexec 1.3.0 were already in the tree. Stay on 16.x: lint-staged 17.x requires Node >=22.22.1, while .nvmrc pins 22.21.0. 16.4.0 keeps engines >=20.17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALzg3SHnr83bG4gbzraNg2
|
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
⛔ 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; 7 remain after this review. 📝 WalkthroughWalkthroughThe root development dependency Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The dependency update and lockfile agree, and the selected version supports the pinned Node release. No merge-blocking issue is evident. 🚥 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 #551 +/- ##
========================================
Coverage 90.00% 90.00%
========================================
Files 211 211
Lines 12451 12451
Branches 3482 3588 +106
========================================
Hits 11206 11206
Misses 1242 1242
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
pnpm auditfails theAudit - AllCI job with 1 high advisory in a dev-only transitive dependency.Audit - Productionis unaffected.The usual fix here, raising a
pnpm.overridesfloor, can't work because no patchedbracesexists. This PR bumps the direct devDependency that pulls it in instead, as #515 did forvitest.braces<=3.0.3(every release)lint-staged16.2.5 → 16.4.0, which dropsmicromatch(and with itbraces)lint-staged > micromatch > bracesRemoved from the lockfile:
braces,fill-range,is-number,micromatch,nano-spawn,pidtree,to-regex-range. Nothing was added:picomatch@4.0.5andtinyexec@1.3.0were already resolved.Decisions
braceshas no patched version (patched_versions: <0.0.0).micromatch@4.0.8is its latest release and still declaresbraces: ^3.0.3, so overriding either package can't remove the advisory. The lint-staged 16.4.0 release has one change: "Replacemicromatchwithpicomatch" (#1739).engines.node >=22.22.1, but.nvmrcpins 22.21.0. 16.4.0 keeps>=20.17and is a minor bump within the current major.devDependenciesentry.lint-stagedto 16.4.0, but it bundles many unrelated updates and every check on it fails. This PR keeps the security fix on its own; chore(deps): update non-major dependencies #328 drops the line when it rebases.braceswas only used by the husky pre-commit hook to match the three fixed globs in the rootlint-stagedconfig. It never received untrusted input.Verification
pnpm auditandpnpm audit --prod: no known vulnerabilitiesgenerateTasksoflint-staged@16.2.5and16.4.0over all 1,166 tracked files with the repo's config gives the same file sets for all three patterns:**/*.{ts,tsx,json,jsonc}459,**/*.{md,yml,yaml}217,**/package.json10, with 0 mismatches.pnpm exec lint-stagedon the stagedpackage.jsonandpnpm-lock.yaml: biome, prettier and sort-package-json each matched the expected file; exit 0, no changespnpm install --frozen-lockfile,pnpm build,pnpm typecheck,pnpm test(184 files, 3368 tests),pnpm run license-check,pnpm biome:check,pnpm prettier:check: pass. The 8 biomenoConsolewarnings inexamples/local-runner/*/serve.mjspredate this PR.pnpm test:integration(needsdeepnote-toolkit). It is left to the Runtime Integration CI job.🤖 Generated with Claude Code
https://claude.ai/code/session_01ALzg3SHnr83bG4gbzraNg2
Summary by CodeRabbit