Vulnerability library
Security checkOctober 23, 2026

Zod can exhaust memory while validating oversized constrained collections

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmzod

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Zod schema-validation library through 4.6.5 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array to an application using an array schema without a length constraint.

Recommendation

Update the zod package to the latest compatible version. Followings are version details:

  • Affected version(s): < 4.6.6
  • Patched version(s): 4.6.6

References

Could your website be exposed too?

SmartScanner can check your website for Zod can exhaust memory while validating oversized constrained collections and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 23, 2026