Skip to main content

Zod CVE-2026-6991

| EUVDEUVD-2026-25667 LOW
SQL Injection (CWE-89)
2026-04-25 VulDB
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to application
  2. Delivery
    Submit CUID with SQL metacharacters
  3. Exploit
    Bypass regex validation
  4. Execution
    CUID passes to SQL query
  5. Persist
    SQL injection executes
  6. Impact
    Data 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Zod 4.3.3
Zod 4.3.4
Zod 4.3.0
Zod 4.3.6
Zod 4.3.5
Zod 4.3.2
Zod 4.3.1

Affected Packages

euvd zod no fix

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

Vendor (VulDB) PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Severity Changed
Apr 29, 2026 - 01:12 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:12 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVSS changed
Apr 25, 2026 - 18:22 NVD
6.3 (MEDIUM) 5.3 (MEDIUM)
CVE Published
Apr 25, 2026 - 17:45 nvd
LOW 2.1

DescriptionCVE.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

EPSS Score
0.0%
Top 99% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy