CVE-2026-6991 colinhacks Zod CUID Data Type regexes.ts sql injection
A SQL injection vulnerability in the Zod library's CUID handler allows remote attackers to manipulate database queries via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-6991?
CVE-2026-6991 is a medium-severity SQL injection vulnerability in colinhacks Zod, published on 25 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-6991?
How do I fix CVE-2026-6991?
No fix has been published for CVE-2026-6991 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-6991 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6991 exists.
Sources
Also known as GHSA-hprg-jrj6-qhrw.