CVE-2026-39356CWE-89

SQL Injection via escapeName() in all Drizzle ORM SQL dialects

High · published April 7, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
34.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00416 · 34.8th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2026-04-07T19:58Z
EPSS history
Timeline
  • 07 APR 19:58Z
    SQL Injection via escapeName() in all Drizzle ORM SQL dialects
    cvelistv5