Improper SQL Identifier Escaping in Drizzle ORM
CVE-2026-39356
7.5HIGH
What is CVE-2026-39356?
Drizzle ORM, a modern TypeScript Object-Relational Mapper, is susceptible to improper handling of SQL identifiers due to insufficient escaping mechanisms in its escapeName() functionality across versions prior to 0.45.2 and 1.0.0-beta.20. The vulnerability arises when attacker-controlled input is sent to functions that create SQL identifiers or aliases, allowing an attacker to manipulate the input and potentially inject malicious SQL code. This flaw underscores the importance of input validation and secure coding practices in database interactions.
Affected Version(s)
drizzle-orm < 0.45.2 < 0.45.2
drizzle-orm >= 1.0.0-beta.2, < 1.0.0-beta.20 < 1.0.0-beta.2, 1.0.0-beta.20
