zod@1.9.2 vulnerabilities

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

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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