What’s Vulnerable › Vulnerabilities
CVE-2026-39356: SQL Injection via escapeName() in all Drizzle ORM SQL dialects
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-07 · updated 2026-07-20
- Weakness: CWE-89
Description
Drizzle is a modern TypeScript ORM. Prior to 0.45.2 and 1.0.0-beta.20, Drizzle ORM improperly escaped quoted SQL identifiers in its dialect-specific escapeName() implementations. In affected versions, embedded identifier delimiters were not escaped before the identifier was wrapped in quotes or backticks. As a result, applications that pass attacker-controlled input to APIs that construct SQL identifiers or aliases, such as sql.identifier(), .as(), may allow an attacker to terminate the quoted identifier and inject SQL. This vulnerability is fixed in 0.45.2 and 1.0.0-beta.20.
Affected products
- drizzle-team drizzle-orm: before 0.45.2; 1.0.0-beta1, 1.0.0-beta11, 1.0.0-beta12, 1.0.0-beta13, 1.0.0-beta14, 1.0.0-beta15 (+12) — fixed in 0.45.2
How to fix
Upgrade to a fixed version: drizzle-team drizzle-orm 0.45.2. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-39356 or the next vulnerability affects your stack