Skip to content

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

Merged
glebedel merged 1 commit into
mainfrom
security-autopilot/ak-28547249-hub-zod-sandboxes
Dec 3, 2026
Merged

glebedel merged 1 commit into
mainfrom
security-autopilot/ak-28547249-hub-zod-sandboxes

Conversation

@s2d2-agent

@s2d2-agent s2d2-agent Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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 chore(deps): bump zod from 4.3.6 to 4.6.6 in /dev/nextjs #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.

Written for commit 7fe3e89. Summary will update on new commits.

View guided diff Turn on auto-fix

Aikido issue group 28547249 (zod, high) still reports hub because
dev/vite and dev/nextjs lock zod 4.3.6. The published package already
resolves 4.6.7. Raise the range floor to ^4.6.6 to match the rsbuild
and vite-react19 sandboxes.

Refs SEC-399

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Bumps zod in the vite and nextjs dev sandboxes from 4.3.6 to 4.6.7, updating the declared range and lockfiles; no published or deployed code changes, so the change is bounded and clearly beneficial.

View guided diff | Turn on auto-fix | Re-trigger cubic

@glebedel
glebedel merged commit 569629a into main Dec 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants