CVE-2023-4316 json
Zod 3.22.2 - Regular expression Denial of Service
published 2023-09-28 3 y ago modified 2026-06-17 4 mo ago also GHSA-m95q-7qp3-xv42 , EUVD-2023-2547
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm zod 3.22.3
- github.com/colinhacks/zod@2ba00fe commit
- github.com/colinhacks/zod#2824 pull request
- github.com/colinhacks/zod/releases/tag/v3.22.3 release
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- fluidattacks.com https://fluidattacks.com/advisories/swift referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | zod | <3.22.3 |
3.22.3 |
Affected products
- Zod Zod
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/colinhacks/zod/pull/2824
web
-
github.com
/colinhacks/zod/commit/2ba00fe2377f4d53947a84b8cdb314a63bbd6dd4
web
-
fluidattacks.com
/advisories/swift
web, exploit, third-party-advisory
-
npmjs.com
/package/zod
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2023-4316
advisory
-
github.com
/colinhacks/zod/issues/2609
web
-
github.com
/colinhacks/zod
package
-
github.com
/colinhacks/zod/releases/tag/v3.22.3
web
Sources
- CVE List CVE-2023-4316
- GitHub Advisory GHSA-m95q-7qp3-xv42
- NVD CVE-2023-4316
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.