zod@3.17.0 vulnerabilities

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

  • latest version

    3.24.1

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    10 hours ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    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