CVE-2026-39356

HIGH

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

Title source: cna
STIX 2.1

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.

References (1)

Core 1
Core References

Scores

CVSS v3 7.5
EPSS 0.0002
EPSS Percentile 4.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-89
Status published
Products (5)
drizzle/drizzle 1.0.0 beta1 (18 CPE variants)
drizzle/drizzle < 0.45.2
drizzle-team/drizzle-orm < 0.45.2
drizzle-team/drizzle-orm >= 1.0.0-beta.2, < 1.0.0-beta.20
npm/drizzle-orm 0 - 0.45.2npm
Published Apr 07, 2026
Tracked Since Apr 08, 2026