{"id":"GHSA-mrhx-c7xc-m3w5","revision":"9a5b63f4bf544155832bb7fd95e9a235","records":[{"revision":"9a5b63f4bf544155832bb7fd95e9a235","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-mrhx-c7xc-m3w5","aliases":["CVE-2023-54404"],"title":"Zod can exhaust memory while validating oversized constrained collections","description":"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.","state":0,"publishedAt":"2026-10-01T18:32:46+00:00","modifiedAt":"2026-10-23T18:30:09.3764059+00:00","affected":[{"ecosystem":"npm","name":"zod","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.6.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2023-54404","https://github.com/colinhacks/zod/issues/1872","https://github.com/colinhacks/zod/pull/6475","https://github.com/colinhacks/zod/pull/6652","https://github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd","https://github.com/colinhacks/zod","https://www.vulncheck.com/advisories/zod-uncontrolled-resource-consumption-via-array-validation"],"sourceUrl":"https://github.com/advisories/GHSA-mrhx-c7xc-m3w5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mrhx-c7xc-m3w5","identifiers":["GHSA-mrhx-c7xc-m3w5","CVE-2023-54404"]},"retained":false,"historicalAffected":[]}],"coverage":[]}