zod@3.0.0-alpha.34

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

  • latest version

    4.6.7

  • first published

    6 years ago

  • latest version published

    21 hours 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?

    There is no fixed version for zod.

    *
    • H
    Regular Expression Denial of Service (ReDoS)

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

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to using an insecure regular expression in emailRegex pattern, which allows an attacker to exploit this vulnerability when validating emails.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade zod to version 3.22.3 or higher.

    <3.22.3