fix(deps): bump zod to 4.6.7 in the vite and nextjs sandboxes
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/viteanddev/nextjs: zod range^4.1.12to^4.6.6, matchingdev/rsbuildanddev/vite-react19- Both lockfiles:
node_modules/zod4.3.6 to 4.6.7 (same resolved URL and sha512 as the root lockfile) - Root peer range
^4.1.12left alone: raising a peer floor is a consumer-facing change and does not affect this finding - Supersedes Dependabot #263 (dev/nextjs only)
Proof
| Lockfile | zod before | zod after |
|---|---|---|
| root (published lib) | 4.6.7 | 4.6.7 (unchanged) |
| dev/vite | 4.3.6 | 4.6.7 |
| dev/nextjs | 4.3.6 | 4.6.7 |
| dev/rsbuild, dev/vite-react19 | 4.6.6 | 4.6.6 (unchanged) |
| dev/vue, dev/vanilla | none | none |
Lockfile line before: "version": "4.3.6", "resolved": ".../zod-4.3.6.tgz"; after: "version": "4.6.7", "resolved": ".../zod-4.6.7.tgz".
| Check | main | this branch |
|---|---|---|
Root npm ci, build, verify:build, lint | pass | pass (root files unchanged) |
| Root tests | 72/72 | 72/72 |
dev/vite npm ci + vite build | pass (zod 4.3.6) | pass (zod 4.6.7) |
dev/nextjs npm ci + next build | pass (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.