CVE-2026-39356: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in drizzle-team drizzle-orm
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.
AI Analysis
Technical Summary
Drizzle ORM versions before 0.45.2 and between 1.0.0-beta.2 and 1.0.0-beta.20 contain an SQL injection vulnerability due to improper escaping of quoted SQL identifiers in dialect-specific escapeName() implementations. Specifically, embedded identifier delimiters were not escaped before wrapping identifiers in quotes or backticks. This flaw allows attackers to inject SQL by terminating quoted identifiers early when passing malicious input to APIs like sql.identifier() or .as(). The issue is resolved in versions 0.45.2 and 1.0.0-beta.20.
Potential Impact
Successful exploitation can lead to SQL injection attacks allowing an attacker to execute arbitrary SQL commands. The CVSS 3.1 score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impact on confidentiality only. There is no indication of impact on integrity or availability. No known exploits in the wild have been reported.
Mitigation Recommendations
Users should upgrade to Drizzle ORM version 0.45.2 or later, or 1.0.0-beta.20 or later, where this vulnerability is fixed. Patch status is not explicitly stated but fixed versions are identified, so upgrading to these versions is the recommended remediation. No vendor advisory content contradicts this guidance.
CVE-2026-39356: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in drizzle-team drizzle-orm
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Drizzle ORM versions before 0.45.2 and between 1.0.0-beta.2 and 1.0.0-beta.20 contain an SQL injection vulnerability due to improper escaping of quoted SQL identifiers in dialect-specific escapeName() implementations. Specifically, embedded identifier delimiters were not escaped before wrapping identifiers in quotes or backticks. This flaw allows attackers to inject SQL by terminating quoted identifiers early when passing malicious input to APIs like sql.identifier() or .as(). The issue is resolved in versions 0.45.2 and 1.0.0-beta.20.
Potential Impact
Successful exploitation can lead to SQL injection attacks allowing an attacker to execute arbitrary SQL commands. The CVSS 3.1 score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impact on confidentiality only. There is no indication of impact on integrity or availability. No known exploits in the wild have been reported.
Mitigation Recommendations
Users should upgrade to Drizzle ORM version 0.45.2 or later, or 1.0.0-beta.20 or later, where this vulnerability is fixed. Patch status is not explicitly stated but fixed versions are identified, so upgrading to these versions is the recommended remediation. No vendor advisory content contradicts this guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-06T21:29:17.349Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d5660baaed68159a5b4073
Added to database: 4/7/2026, 8:16:11 PM
Last enriched: 4/7/2026, 8:31:39 PM
Last updated: 4/8/2026, 2:11:53 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.