Vulnerability DatabaseGHSA-mvrp-3cvx-c325

GHSA-mvrp-3cvx-c325
JavaScript vulnerability analysis and mitigation

Overview

A denial of service (DoS) vulnerability was discovered in express-zod-api versions below 10.0.0-beta1, identified as GHSA-mvrp-3cvx-c325. The vulnerability stems from an inefficient regular expression complexity in zod versions up to 3.22.2 during email validation when using the z.string().email() validation schema (GitHub Advisory).

Technical details

The vulnerability is caused by catastrophic backtracking in the email validation regex, specifically in the pattern ([A-Z0-9_+-]+.?)*. This results in exponential execution time increases for failed matches, leading to potential denial of service attacks. The vulnerability has a CVSS score of 7.5 (High severity) with attack vector: Network, attack complexity: Low, privileges required: None, user interaction: None, scope: Unchanged, and high availability impact (GitHub Advisory).

Impact

When exploited, this vulnerability can cause API servers running express-zod-api to experience denial of service conditions during email validation attempts. The impact primarily affects the availability of the service, with no direct effect on confidentiality or integrity (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade express-zod-api to version 10.0.0 or later, which handles zod as a peer dependency. Alternatively, users can replace z.string().email() with a custom regex pattern: z.string().regex(/^(?!.)(?!...)[A-Z0-9+-.]*[A-Z0-9+-]@([A-Z0-9][A-Z0-9\-].)+[A-Z]{2,}$/i) (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management