NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2023-54404: Zod can exhaust memory while validating oversized constrained collections

highCVSS 4.0 8.2 · 3.1 7.5GHSA-mrhx-c7xc-m3w5

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.

Published Oct 1, 2026 · Updated Oct 23, 2026

Affected packages

zod

Ecosystem
npm
Affected
< 4.6.6
Fixed in
4.6.6
Check
npm ls zod

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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. Attackers can exploit the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element with no cap or early termination, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.

Credited to MohamedEslam04.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology