{"id":"GHSA-mrhx-c7xc-m3w5","summary":"Zod can exhaust memory while validating oversized constrained collections","details":"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.","aliases":["CVE-2023-54404"],"modified":"2026-10-23T18:30:09.376405885Z","published":"2026-10-01T18:32:46Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-10-23T18:26:50Z","nvd_published_at":"2026-10-01T18:17:11Z","cwe_ids":["CWE-770"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54404"},{"type":"WEB","url":"https://github.com/colinhacks/zod/issues/1872"},{"type":"WEB","url":"https://github.com/colinhacks/zod/pull/6475"},{"type":"WEB","url":"https://github.com/colinhacks/zod/pull/6652"},{"type":"WEB","url":"https://github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd"},{"type":"PACKAGE","url":"https://github.com/colinhacks/zod"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/zod-uncontrolled-resource-consumption-via-array-validation"}],"affected":[{"package":{"name":"zod","ecosystem":"npm","purl":"pkg:npm/zod"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.6.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-mrhx-c7xc-m3w5/GHSA-mrhx-c7xc-m3w5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}