Skip to main content
← All vulnerabilities
CVE-2026-39356GHSA-GPJ5-G38J-94V9

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.45.2, 1.0.0-beta.20
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • drizzle-team drizzle-orm

    fixed in 0.45.2; From 1.0.0-beta.2 · fixed in 1.0.0-beta.20

  • drizzle-ormnpm

    fixed in 0.45.2

  • drizzle-ormnpm

    From 1.0.0-beta.2 · fixed in 1.0.0-beta.20

References 1

GitHub · drizzle-team/drizzle-orm