Advisory

GHSA-mrhx-c7xc-m3w5

Also known as: CVE-2023-54404

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-10-01 18:32 UTC
Modified
2026-10-23 18:30 UTC

Affected packages and fixes

zod

npm · All systems

Affected

  • introduced 0, fixed 4.6.6 (semver)

Fixed versions

4.6.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences