Description
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.
Recommendation
Update the drizzle-orm package to the latest compatible version. Followings are version details:
Affected version(s): **>= 1.0.0-beta.2, < 1.0.0-beta.20 < 0.45.2** Patched version(s): **1.0.0-beta.20 0.45.2**
References
Could your website be exposed too?
SmartScanner can check your website for Drizzle ORM has SQL injection via improperly escaped SQL identifiers and gives you actionable findings to investigate.
Start a free scanRelated Issues
- @nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading - CVE-2026-41640
- Payload has an SQL Injection via Query Handling - CVE-2026-34747
- @payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters - CVE-2026-25544
- OneUptime ClickHouse vulnerable to SQL Injection via unvalidated column identifiers in sort, select, and groupBy paramet - CVE-2026-33142


