zod@4.5.0

TypeScript-first schema declaration and validation library with static type inference

  • latest version

    4.6.7

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    9 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the zod package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Allocation of Resources Without Limits or Throttling

    zod is a TypeScript-first schema declaration and validation library with static type inference

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element in a large array with no cap or early termination. An attacker can submit a large array to an application using an array schema without a length constraint, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade zod to version 4.6.6 or higher.

    <4.6.6