zod@3.5.4 vulnerabilities

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

  • latest version

    4.1.13

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    11 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
    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