fix(deps): resolve open Dependabot alerts in the lockfile

Merged
GL
4d ago
+601-767

Clears the open Dependabot alerts on main by moving the lockfile to patched versions. Every fixed version is older than the repo's 7 day minimumReleaseAge, so the supply-chain gate still holds.

Published consumers of @stackone/ai resolve their own dependency versions, so this changes what CI, the tests, the examples and the mock MCP server run against, not what users install.

What changed

  • zod dev catalog: ^4.3.0 to ^4.6.7 (direct, GHSA-mrhx-c7xc-m3w5).
  • Re-resolved within existing ranges: proxy-addr, body-parser, fast-uri, qs, ajv, path-to-regexp, undici, js-yaml, smol-toml, source-map-js, picomatch.
  • vite, postcss, rollup and nanoid sit under peer-resolved packages (vite under vitest, rollup under unplugin), so pnpm update leaves them alone. Four overrides in pnpm-workspace.yaml, each scoped to the vulnerable range only, move them. Each can be dropped once the parent packages require the fix.
Packagemainthis PR
proxy-addr (critical)2.0.72.0.8
fast-uri3.1.03.1.9
body-parser2.2.12.4.0
path-to-regexp8.3.08.4.2
qs6.14.06.17.1
ajv8.17.18.20.0
zod4.3.54.6.7
undici7.29.07.30.2
vite7.2.67.3.7
rollup4.53.34.67.5
postcss8.5.68.5.32
nanoid3.3.113.3.20
js-yaml4.1.14.3.2
smol-toml1.5.21.9.1
source-map-js1.2.11.2.2
picomatch2.3.1 / 4.0.32.3.2 / 4.0.7

Proof

A script checks every open alert's vulnerable range (from the Dependabot API) against every version of that package in the lockfile:

main:     critical 1/1, high 28/28, medium 23/23, low 9/9 still vulnerable
this PR:  critical 0/1, high 0/28,  medium 0/23,  low 1/9 still vulnerable
STILL 46 low esbuild >= 0.27.3 < 0.28.1 -> 0.27.7

The one left is low severity, affects only esbuild's dev server (not used here), and is held at 0.27 by tsx@4.21's ~0.27.0 range. Fixing it means a tsx minor bump, which is out of scope here.

Local run on Node 24.22.3 and pnpm 11.17.0 at the PR head:

CheckResult
pnpm install --frozen-lockfileclean
pnpm peers checkno peer dependency issues
pnpm lint (oxfmt, oxlint type-aware, knip)clean (knip's existing @typescript/native-preview hint only)
pnpm buildbuilt, publint no issues
pnpm test47 files, 1324 passed, 4 skipped, no type errors

No runtime change to the library, so there is no demo beyond the checks above.

Gates

GateResult
/forge:forgeslop meter: no source files, 0 findings; config diff reviewed by hand
Security scan with AikidoAikido PR check runs on this head; alert check script above
Codex security passnot run: no source code changed (lockfile and pnpm config only)
/security-reviewnot run: no source code changed
/code-reviewself-review of the diff; frozen install and peers check clean

May conflict in pnpm-lock.yaml with #399. Whichever merges second needs pnpm install --lockfile-only after taking either side.

Post-merge validation

After merge, the Dependabot alert list should show 0 critical, 0 high and 0 medium open, with esbuild #46 as the only one left. CI on main should stay green.

Requested by guillaume@stackone.com in Slack (repo audit thread)

šŸ¤– Generated with Claude Code


Summary by cubic

Clears open Dependabot alerts on main by moving the lockfile to patched versions. Published consumers of @stackone/ai resolve their own dependency versions, so this changes only what CI, tests, and the examples run against — not what users install.

Scope

  • Bumps the dev catalog zod to ^4.6.7 and re-resolves transitive deps (proxy-addr, body-parser, fast-uri, qs, ajv, path-to-regexp, undici, js-yaml, smol-toml, source-map-js, picomatch) within their existing ranges.
  • Adds overrides scoped to vulnerable ranges for vite, postcss, rollup, and nanoid, which sit under peer-resolved packages. Each can be dropped once the parent package requires the fix.
  • Every fixed version is older than the repo's 7-day minimumReleaseAge.

Validation

  • Frozen install, peers check, lint, build, and all 1324 tests pass.
  • Script check of every open alert's vulnerable range: 0 critical/high/medium remain. The one low (esbuild, dev server only) is held at 0.27 by tsx's ~0.27.0 range and is out of scope here.
  • May conflict in pnpm-lock.yaml with #399; the second merge needs pnpm install --lockfile-only after taking either side.