CVE-2023-4316 Zod 3.22.2 - Regular expression Denial of Service

High 7.5 Published Updated

An attacker can cause a denial of service by submitting specially crafted email strings to the Zod validation library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-4316?

CVE-2023-4316 is a high-severity denial of service vulnerability in Zod, published on 28 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Zod in versions 3.21.0 up to and including 3.22.3 allows an attacker to perform a denial of service while validating emails.

Weakness: CWE-1333

Which versions are affected by CVE-2023-4316?

2 open source packages ship an affected version, including zod. It affects 1 product.

PackageAffectedFixed in
zod npmAll versions3.22.3
zod npmAll versions3.22.3

Products include Zod Zod.

How do I fix CVE-2023-4316?

Upgrade zod to 3.22.3 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-4316 being exploited?

There is no known exploitation of CVE-2023-4316 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1782867616, GHSA-m95q-7qp3-xv42.

Is CVE-2023-4316 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free