Back to CVE records
High 7.5Published Oct 1, 2026

CVE-2023-54404Zod Uncontrolled Resource Consumption via Unbounded Array, Set, and Map Validation

Updated under an hour ago ()

Does this affect you?

It affects colinhacks zod. Add what you run to find out whether that includes you.

EPSS puts the chance of exploitation in the next 30 days at 0.34%, higher than 25% of scored CVEs.

Zod schema-validation library contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array, set or map to an application that uses a container schema without an explicit size constraint. The handleArrayResult parse logic in $ZodArray (and the equivalent set and map paths) accumulates every validation issue for each failing element with no cap or early termination, causing the process to allocate one issue object per element and crash under out-of-memory conditions. This is reachable in the default configuration whenever a container schema such as z.array() is declared without a size bound. The upstream change in commit e06a510 (pull request 6652, first released in 4.6.6) only moves the .max(), .length() and .size() size checks to run before element parsing, so it rejects oversized input for schemas that declare an explicit upper bound; per the maintainer, unbounded containers are unchanged. No released version remediates the unbounded (default) case described here, and an opt-in setting to cap total accumulated errors was proposed but not merged.

CVSS
7.5 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-770, CWE-1188
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
0.34% (percentile 25)
Assigned by
VulnCheck
NVD analysis
Awaiting Analysis
Record last updated
Oct 22, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
colinhacks zod
colinhacks:zod (from the name)
through 4.6.7
CNA record

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.