fix(deps): bump zod to 4.6.7 in the vite and nextjs sandboxes

Merged
S2
1h ago
+10-10

Why

Aikido issue group 28547249 (zod, high, score 82) still lists hub. The published @stackone/hub package already resolves zod 4.6.7 (#238), but two dev sandboxes still lock zod 4.3.6, below the fixed 4.6.6. The advisory covers excessive memory use when validating oversized collections. The sandboxes are local dev apps, not published or deployed, so runtime exposure is nil; the bump clears the last vulnerable copies in the repo. Tracked in SEC-399.

Zero Wire: https://radar.cloudflare.com/zero-wire/cves/CVE-2023-54404 (MITRE lists this CVE as rejected; Aikido still reports its own intel ids for the group)

What changed

  • dev/vite and dev/nextjs: zod range ^4.1.12 to ^4.6.6, matching dev/rsbuild and dev/vite-react19
  • Both lockfiles: node_modules/zod 4.3.6 to 4.6.7 (same resolved URL and sha512 as the root lockfile)
  • Root peer range ^4.1.12 left alone: raising a peer floor is a consumer-facing change and does not affect this finding
  • Supersedes Dependabot #263 (dev/nextjs only)

Proof

Lockfilezod beforezod after
root (published lib)4.6.74.6.7 (unchanged)
dev/vite4.3.64.6.7
dev/nextjs4.3.64.6.7
dev/rsbuild, dev/vite-react194.6.64.6.6 (unchanged)
dev/vue, dev/vanillanonenone

Lockfile line before: "version": "4.3.6", "resolved": ".../zod-4.3.6.tgz"; after: "version": "4.6.7", "resolved": ".../zod-4.6.7.tgz".

Checkmainthis branch
Root npm ci, build, verify:build, lintpasspass (root files unchanged)
Root tests72/7272/72
dev/vite npm ci + vite buildpass (zod 4.3.6)pass (zod 4.6.7)
dev/nextjs npm ci + next buildpass (zod 4.3.6)pass (zod 4.6.7)
dev/vite dev server GET /200

Reviews: Codex review (no bugs), Codex adversarial review (no actionable findings, integrity matches the npm registry), independent Opus review (approve). Forge and eng-review were not run: no source code in the diff.

Risk and rollback

Dev sandboxes only; nothing published or deployed changes. Rollback is a revert of this commit.

What we will watch after deploy

Nothing ships, so no Datadog query applies. After merge, the Aikido rescan should drop hub from group 28547249.


Opened by Security Autopilot (s2d2) for Guillaume Lebedel from Aikido issue 28547249, under the automatic Aikido fix approval of 2026-11-01.

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the zod security finding in the vite and nextjs dev sandboxes by bumping zod from 4.3.6 to 4.6.7, the version @stackone/hub already publishes and resolves.

  • Both sandboxes are dev-only and unpublished, so no runtime exposure exists; the bump clears the last vulnerable copies in the repo.
  • No consumer-facing change: the root peer range and the published package are untouched.