Skip to content

fix: patched undici and zod, run compat, Windows, Node 24 and lint on PRs - #1210

Merged
LinuxDevil merged 1 commit into
mainfrom
fix/security-ci-gaps
Nov 25, 2026
Merged

LinuxDevil merged 1 commit into
mainfrom
fix/security-ci-gaps

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Security

  • undici is ^8.12.2 (lockfile 8.13.1); earlier 8.x releases have published advisories.
  • README/docs install commands and scaffolded ai 7 projects use zod@^4.6.6 (GHSA-mrhx-c7xc-m3w5). The README command could install vulnerable zod 3.25.76.
  • Studio accepts ^3.25.76 || ^4.6.6, so an install can use patched zod 4. The SDK's peer range is unchanged.

CI

  • compat (full suite on ai 7 / zod 4) runs on every PR. Its last two runs failed because the DTS worker ran out of memory, so it now builds without declarations; tsc and test:types still cover types there.
  • test runs on Ubuntu with Node 22.19 and 24, and on Windows.
  • check runs lint, which was only a commit hook.
  • lousho deploy prints Studio source paths with forward slashes (the one test failing on Windows).

Verified locally (Windows)

tsc, lint, api:check, doc snippets, SDK suite 843/843, Studio server 202/202. Studio server 202/202 and UI 204/204 also pass on zod 4.

Not covered

The monorepo's dev install stays on zod 3 / ai 4, so npm audit still reports those dev dependencies.

🤖 Generated with Claude Code

… PRs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@lousho-ai lousho-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.

Approving. This PR addresses security gaps by updating undici to ^8.12.2 (fixing published advisories) and aligning the zod range to allow ^4.6.6 (fixing GHSA-mrhx-c7xc-m3w5). CI improvements include running lint in the check job (previously a commit-only hook), expanding the test matrix to Node 24 and Windows, and making the compat job run on every PR (previously manual only) while building without declarations to avoid DTS worker OOM. Documentation and scaffold templates are updated to use zod@^4.6.6 for new projects. The studioFreshness check now uses forward slashes for Windows path compatibility.

@LinuxDevil
LinuxDevil merged commit 963d42d into main Nov 25, 2026
7 of 8 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