zod

Ecosystem: npm

Downloads: 1.51 Bln

Vulnerabilities from the last (months)
  • 0CriticalAffects 0 versions
  • 1HighAffects 1 version
  • 0MediumAffects 0 versions
  • 1ModerateAffects 1 version
  • 0LowAffects 0 versions
Severity distribution (all time)
2vulnerabilities
  • Critical0 (0.0%)
  • High1 (50.0%)
  • Medium0 (0.0%)
  • Moderate1 (50.0%)
  • Low0 (0.0%)

Monthly breakdown

  • Critical
  • High
  • Medium
  • Moderate
  • Low
  • 1 vulnerabilities
    • Critical: 0
    • High: 1
    • Medium: 0
    • Moderate: 0
    • Low: 0
  • 1 vulnerabilities
    • Critical: 0
    • High: 0
    • Medium: 0
    • Moderate: 1
    • Low: 0

Vulnerabilities (2)

Known vulnerabilities affecting zod, based on data from OSV.

Vulnerabilities affecting zod
IDSeveritySummaryAffected versionsPublishedSource
GHSA-mrhx-c7xc-m3w5HighZod can exhaust memory while validating oversized constrained collectionsZod schema-validation library through 4.6.5 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array to an application using an array schema without a length constraint. Attackers can exploit the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element with no cap or early termination, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.
  • < 4.6.6
GitHub (opens in a new tab)
GHSA-m95q-7qp3-xv42ModerateZod denial of service vulnerabilityZod version 3.22.2 allows an attacker to perform a denial of service while validating emails.
  • < 3.22.3
GitHub (opens in a new tab)
  • GHSA-mrhx-c7xc-m3w5High
    Zod can exhaust memory while validating oversized constrained collections
    • < 4.6.6

    Zod schema-validation library through 4.6.5 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array to an application using an array schema without a length constraint. Attackers can exploit the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element with no cap or early termination, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.

    CVE: CVE-2023-54404

  • GHSA-m95q-7qp3-xv42Moderate
    Zod denial of service vulnerability
    • < 3.22.3

    Zod version 3.22.2 allows an attacker to perform a denial of service while validating emails.

    CVE: CVE-2023-4316

Showing 1-2 of 2 vulnerabilities