Install
zod
TypeScript-first schema declaration and validation library with static type inference
4.6.7Latest, 12 Oct 2026
2BDownloads, last month
0Advisories on the latest
2Advisories, all versions
MITLicence
44KStars
5.1/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | Zod can exhaust memory while validating oversized constrained collections CVE-2023-54404 | Fixed in 4.6.6 | 1 Oct 2026 |
| Moderate | Zod denial of service vulnerability CVE-2023-4316 | Fixed in 3.22.3 | 28 Sep 2023 |
In the news
- A spam-resistant contact form in the Next.js App Router (Server Actions, Zod, useActionState) dev.to, 2 Dec 2026
- One sample of JSON will lie to you about your Zod schema dev.to, 1 Dec 2026
- Zod vs Valibot vs ArkType: Which Runtime Validator Should You Use for API Input in TypeScript? dev.to, 28 Nov 2026
- Same positive-integer rule, different precision: Pydantic and Zod split because JSON is read differently before validation dev.to, 26 Nov 2026
- 3 Breaking Differences Between OpenAPI 3.0 and 3.1 That Trip Up TypeScript & Zod Codegen dev.to, 24 Nov 2026
On Hacker News
- Zod 4 782 points, 255 comments, 19 May 2025
- Zod: TypeScript-first schema validation with static type inference 242 points, 198 comments, 7 Oct 2024
- ArkType: Ergonomic TS validator 100x faster than Zod 192 points, 71 comments, 12 Apr 2025
- Zod 4.6.6 compromised by malware? 183 points, 52 comments, 12 Oct 2026
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.