Intel

AIKIDO-2026-143019

zod is vulnerable to Denial of Service (DoS)

CVE-2023-54404Published Oct 12, 2026
October 12, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

Zod's array schema validation accumulates a new validation issue object for every element that fails a check, inside the handleArrayResult logic of $ZodArray, with no cap or early termination check on the total. Parsing a large array against an array schema that carries no length constraint lets each failing element add another issue object, so the process keeps allocating until it exhausts memory and crashes.

How do I fix this?

Upgrade the zod and/or the @zod/mini library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse untrusted input against an array schema (z.array()) that has no maximum length constraint.

Package

Versions

0.0.1 - 4.6.5

Fixed in 4.6.6

Background info

zod is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 4.6.5.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea