Colinhacks Zod CUID Data Type SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in colinhacks Zod versions through 4.3.6. The issue arises in the CUID Data Type Handler, specifically within an unknown function of the file packages/zod/src/v4/core/regexes.ts. This vulnerability allows for remote exploitation and has been publicly disclosed.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can manipulate SQL queries to the database. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, use a version of colinhacks Zod prior to 4.3.6. Create a schema that includes a CUID field. When the schema is parsed, the validation process will incorrectly allow unsafe characters, such as quotes and angle brackets, which can then be exploited to perform SQL injection.

Added: Apr 25, 2026, 6:18 PM
Updated: Apr 25, 2026, 6:18 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
2.5
exploitability
6.0
remediation
0.0
relevance
6.7
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.