Skip to content

fix(console): patch vulnerable Zod copies - #14908

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/console-zod-security
Oct 24, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/console-zod-security

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

The chart's published Console image reports CVE-2023-54404 for Zod 4.1.11 and 4.5.4. Raise the Console dependency floor to ^4.6.7 and update only Zod in bun.lock. This also deduplicates the three TanStack nested copies onto the patched root package; no override is needed.

The 2026-10-24 chart image scan reports both affected versions in appwrite/new:1.2.106-self-hosted:
https://github.com/appwrite/helm-chart/actions/runs/40063633349

Upstream 4.6.6 introduced size checks before element parsing:
https://github.com/colinhacks/zod/releases/tag/v4.6.6

Validation:

  • Frozen Bun install and SDK pin check pass.
  • All 679 Console unit tests pass.
  • Type check against origin/main passes with no new errors; the existing type baseline is unchanged.
  • git diff --check passes. Full build/E2E validation will run in PR CI.
  • Console, router-generator, router-plugin and start-plugin-core resolve Zod 4.6.7.
  • A bounded-array smoke check rejects 1,000 elements without invoking element refinements on 4.6.7; the same check invokes all 1,000 refinements on 4.1.11. This verifies the early size guard, not a blanket bound on schemas that have no size constraint.
  • Trivy detects the CVE in installed 4.1.11 and 4.5.4 package metadata and not in installed 4.6.7.

This isolates the Zod security update also present in the broader 69-update Dependabot PR #14894, whose Console checks currently fail. That PR is not modified here.

After merge, publish a patched Console image, update the chart to that published self-hosted tag and rescan. The current production image remains affected until that release sequence completes.

Continues appwrite-labs/infrastructure#896, batch 3.

@appwrite

appwrite Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

New Console

Project ID: new-console

Sites (1)
Site Status Logs Preview QR
 New Console
new-console
Processing Processing View Logs Preview URL QR Code

Tip

Function builds can take up to 45 minutes before timing out

@luxor-code-review

luxor-code-review Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR is a routine dependency bump for the Console app: it raises the zod semver range from ^4.1.11 to ^4.6.7 in apps/console/package.json and regenerates apps/console/bun.lock, which resolves zod to 4.6.7 and drops the now-redundant nested [email protected] pins previously held for TanStack Router plugins.

Files Change
apps/console/package.json Bump zod devDependency range from ^4.1.11 to ^4.6.7.
apps/console/bun.lock Lockfile regenerated: zod resolution updated to 4.6.7 with a new integrity hash, and stale aliased 4.5.4 entries for @tanstack/router-* packages removed.

Reviewed commit: e51eb09

@ghost

ghost commented Oct 24, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

Raises the Console's direct Zod dependency floor to 4.6.7 and updates the Bun lockfile to select that release. The lockfile also removes the three TanStack-specific nested 4.5.4 copies so those packages resolve the root Zod version.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
apps/console/package.json Raises the Console's declared Zod minimum from 4.1.11 to 4.6.7.
apps/console/bun.lock Updates the locked root Zod package and deduplicates the TanStack nested Zod copies.
🔇 Filtered out · 1

Findings Hansi considered but did not post.

Finding Why
Zod 4.6.7 remains affected by CVE-2023-54404 Verifier: The OSV record does list 4.6.7 as affected, but the claimed Console-server exposure is not supported by the code. Console has no Zod array, set, or map schemas (including chained .array() calls). Its server input validators in src/server/functions/{activities,api-reference,api-explorer}.ts validate fixed-shape objects with scalar fields; an attacker-supplied array in those fields is rejected as a type mismatch rather than parsed element-by-element. The other Zod-dependent packages in the lockfile are build/lint tooling. Thus the unbounded-container issue described in this finding has no identified reachable path in Console; an affected-version listing alone does not establish this bug.

Reviewed e51eb09 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 24, 2026

@ghost ghost 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.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit ecc70fd into main Oct 24, 2026
37 of 38 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.

1 participant