zod
4.6.7 · 12 Oct 2026MIT468.6M / weekRepositoryHomepagenpmAtom feed
4.6.7 is the newest release of 4.x.
Summary· from the note as AI read it
Migration neededRead before upgrading: 1 change to make.
Before you upgrade
- Check for uses of stringToBoolean and replace them, e.g. with z.stringbool()
In short
1 removed4 fixed4 internal
- Removed
Drop stringToBoolean
Security
1 advisory affects 4.1.3; 4.6.6 fixes them
- HighZod can exhaust memory while validating oversized constrained collectionsGHSA-mrhx-c7xc-m3w5 · 1 Oct 2026Fixed in 4.6.6
Release note
Commits
Drop stringToBoolean
v4: toJSONSchema - add missing oneOf inside items in tuple conversion
v4: toJSONSchema tuple path handling for draft-7 with metadata IDs
v4: toJSONSchema - wrong record output when targeting
openapi-3.0v4: toJSONSchema - output numbers with exclusive range correctly when targeting
openapi-3.0
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.