Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to application
-
DeliverySubmit CUID with SQL metacharacters
-
ExploitBypass regex validation
-
ExecutionCUID passes to SQL query
-
PersistSQL injection executes
-
ImpactData exfiltration or modification
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions: (1) the attacker must be authenticated to the application (PR:L in CVSS vector); (2) the application must use Zod's CUID Data Type Handler to validate user input; and (3) the validated CUID output must be directly concatenated or interpolated into SQL queries without parameterized query mechanisms or additional escaping. Default Zod configurations do not inherently enable this vulnerability - it manifests only when downstream SQL usage is unsafe. If your application uses Zod solely for schema validation and then passes results through an ORM with parameterized queries (e.g., TypeORM, Prisma with proper prepared statements), the risk is mitigated. The vulnerability is NOT exploitable against applications that never use Zod output in SQL contexts, such as those using Zod for API request validation only. |
| Impact | CVSS 5.3 (medium severity) with AV:N/AC:L/PR:L indicates remote exploitation requires a low-privileged authenticated user and low attack complexity. The E:P flag (Proof of Concept Publicly Available) confirms public exploit code exists. EPSS data is not provided, limiting probabilistic exploitation assessment. The key tension is between the medium CVSS score and the SQL injection classification (typically high-risk) - this discrepancy suggests either the vulnerability requires specific downstream deployment (i.e., Zod output used unsafely in SQL contexts) or the practical impact is limited by Zod's role as a validation library rather than a direct database interface. Authentication requirement (PR:L) is a significant limiting factor; unauthenticated SQL injection would carry higher real-world risk. The lack of vendor response and missing patch status elevates concern for long-term exposure in systems unable to upgrade. Without EPSS or KEV confirmation, prioritize based on whether your application uses Zod-validated data directly in SQL queries without re-sanitization. |
| Exploit ScenarioDerived | An authenticated user with access to a form or API endpoint that accepts CUID data submits a specially crafted input containing SQL metacharacters or commands. The regex validation in Zod's CUID handler fails to properly sanitize the payload. If the application subsequently uses the validated CUID in a SQL query without parameterization, the attacker's SQL code executes in the database context, potentially exfiltrating or modifying sensitive data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 25, 2026
SQL injection vulnerability in Zod CUID Data Type Handler affects versions up to 4.3.6, allowing authenticated remote attackers to manipulate input validation logic in the regex component and execute arbitrary SQL queries. The vulnerability has been publicly disclosed with proof-of-concept code available; the vendor was contacted early but provided no response, and no patch has been issued as of analysis time.
RemediationAI
Upgrade to a patched version of Zod greater than 4.3.6 if available from the vendor repository. As of analysis time, no official patched version has been confirmed by the vendor (colinhacks did not respond to early disclosure). As a workaround, do NOT pass Zod-validated CUID values directly into SQL queries - always re-validate, escape, or use parameterized queries with bound variables. Review all code paths where Zod CUID validation output feeds into database operations and implement SQL parameterization (prepared statements) as a compensating control. This adds a small performance overhead but eliminates SQL injection risk regardless of validation bypass. Monitor the Zod GitHub repository and npm package for security updates. Consider forking or pinning to a specific version with manual review if upgrading is not immediately feasible, but this is not a long-term solution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Zod is a TypeScript-first schema validation library. The vulnerability exists in the CUID Data Type Handler component, specifically in the regex validation logic located in packages/zod/src/v4/core/regexes.ts. CWE-89 (SQL Injection) indicates that the regex-based validation fails to properly sanitize or escape input before it is used in SQL contexts. This suggests the vulnerability arises when Zod schemas are used to validate data that is subsequently passed to database queries without additional sanitization, or the regex pattern itself can be manipulated to bypass validation checks intended to prevent SQL metacharacters.
Know when Zod gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability was determined in colinhacks Zod up to 4.3.6. The impacted element is an unknown function of the file packages/zod/src/v4/core/regexes.ts of the component CUID Data Type Handler. Executing a manipulation can lead to sql injection. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-25667
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB