CVE-2023-54404: Zod 4.6.5 Uncontrolled Resource Consumption via Array Validation

Published Oct 1, 2026
·
Updated

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.

Affected Software

1 affected component
npm/zod<=4.6.5

Event History

Oct 1, 2026
CVE Published
via MITRE·05:11 PM
Data Sourced
via MITRE·05:11 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using npm/zod through version 4.6.5 are exposed when they validate attacker-supplied arrays with an array schema that has no length constraint. The affected parsing path accumulates validation issues for every failing array element.

2

What does an attacker need to do to trigger the resource exhaustion?

An attacker can submit a sufficiently large array containing failing elements to a reachable validation endpoint or input path. No authentication or user interaction is required according to the supplied severity vector.

3

What can be done if updating is not immediately possible?

Add length constraints to array schemas that process untrusted input, and enforce request or payload size limits before Zod validation. These measures reduce the number of invalid elements for which issue objects can be accumulated.

4

How can I determine whether my application is affected?

Check whether the application depends on npm/zod version 4.6.5 or earlier and accepts untrusted arrays validated by unconstrained array schemas. Test or review paths where large arrays with invalid elements can reach Zod validation, as these are the inputs that can cause excessive issue-object allocation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203