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.
This CVE has been withdrawn by MITRE
MITRE marked CVE-2023-54404 as REJECTED on . It is no longer considered a valid vulnerability record. The original content below is preserved for historical reference only.
Reason given by MITRE
This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. The described memory use only grows in proportion to input already allocated by JSON.parse before Zod runs, is reachable only without an application request-size limit, and reflects expected validator behavior rather than a defect in Zod.
CVE-2023-54404
✕ Withdrawn — historical dataHIGHPre-NVD 7.5
7.5CVSS
- CVSS v3
- 7.5
- EchelonGraph score
- Not yet assessedThis CVE record was withdrawn by its numbering authority, so there is no vulnerability to rate.
- EPSS PROB
- —
- EPSS %ILE
- —
- KEV
- —Not applicable: this CVE ID was withdrawn
Published
October 1, 2026
Last Modified
October 28, 2026
References (4)
- disclosure@vulncheckhttps://github.com/colinhacks/zod/issues/1872
- disclosure@vulncheckhttps://github.com/colinhacks/zod/pull/6475
- disclosure@vulncheckhttps://github.com/colinhacks/zod/pull/6652
- disclosure@vulncheckhttps://www.vulncheck.com/advisories/zod-uncontrolled-resource-consumption-via-array-validation
Frequently asked(4)
What is CVE-2023-54404?
CVE-2023-54404 is a rejected CVE ID: its record was withdrawn on October 28, 2026 and no longer describes a vulnerability. Reason given: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. The described memory use only grows in proportion to input already allocated by JSON.parse before Zod runs, is reachable only without an application request-size limit, and reflects expected validator behavior rather than a defect in Zod.
When was the CVE record for CVE-2023-54404 published?
The CVE record for CVE-2023-54404 was published on October 1, 2026. EchelonGraph's copy of the record carries a last-modified date of October 28, 2026; the record at its source may have been updated since.
What is the CVSS score of CVE-2023-54404?
CVE-2023-54404 has a CVSS base score of 7.5 (a secondary CVSS source that NVD displays; NVD's own analysis pending).
How do I remediate CVE-2023-54404?
There is nothing to remediate under CVE-2023-54404: it is a rejected (withdrawn) CVE ID and no longer describes a vulnerability.