CVE-2026-39356: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in drizzle-team drizzle-orm
CVE-2026-39356 is a high-severity SQL injection vulnerability in the drizzle-orm TypeScript ORM. Versions prior to 0. 45. 2 and before 1. 0. 0-beta. 20 improperly escape quoted SQL identifiers, allowing attacker-controlled input to break out of quoted identifiers and inject SQL commands. This occurs in APIs that construct SQL identifiers or aliases, such as sql. identifier() and . as().
AI Analysis
Technical Summary
Drizzle ORM versions before 0.45.2 and 1.0.0-beta.20 contain a vulnerability where the dialect-specific escapeName() implementations do not properly escape embedded identifier delimiters before wrapping identifiers in quotes or backticks. This improper neutralization of special elements used in SQL commands (CWE-89) can allow an attacker to terminate quoted identifiers and inject arbitrary SQL via APIs that accept attacker-controlled input for SQL identifiers or aliases. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts confidentiality but not integrity or availability.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary SQL commands by manipulating input passed to APIs that construct SQL identifiers or aliases. This can lead to unauthorized disclosure of sensitive information (confidentiality impact). There is no indication of integrity or availability impact. No known exploits in the wild have been reported. The vulnerability affects applications using vulnerable versions of drizzle-orm that pass untrusted input to the affected APIs.
Mitigation Recommendations
This vulnerability is fixed in drizzle-orm versions 0.45.2 and 1.0.0-beta.20. Users should upgrade to at least these versions to remediate the issue. Patch status is not explicitly stated in the vendor advisory, but the fix is included in these versions. Until upgraded, avoid passing untrusted input to APIs that construct SQL identifiers or aliases such as sql.identifier() and .as().
CVE-2026-39356: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in drizzle-team drizzle-orm
Description
CVE-2026-39356 is a high-severity SQL injection vulnerability in the drizzle-orm TypeScript ORM. Versions prior to 0. 45. 2 and before 1. 0. 0-beta. 20 improperly escape quoted SQL identifiers, allowing attacker-controlled input to break out of quoted identifiers and inject SQL commands. This occurs in APIs that construct SQL identifiers or aliases, such as sql. identifier() and . as().
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Drizzle ORM versions before 0.45.2 and 1.0.0-beta.20 contain a vulnerability where the dialect-specific escapeName() implementations do not properly escape embedded identifier delimiters before wrapping identifiers in quotes or backticks. This improper neutralization of special elements used in SQL commands (CWE-89) can allow an attacker to terminate quoted identifiers and inject arbitrary SQL via APIs that accept attacker-controlled input for SQL identifiers or aliases. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts confidentiality but not integrity or availability.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary SQL commands by manipulating input passed to APIs that construct SQL identifiers or aliases. This can lead to unauthorized disclosure of sensitive information (confidentiality impact). There is no indication of integrity or availability impact. No known exploits in the wild have been reported. The vulnerability affects applications using vulnerable versions of drizzle-orm that pass untrusted input to the affected APIs.
Mitigation Recommendations
This vulnerability is fixed in drizzle-orm versions 0.45.2 and 1.0.0-beta.20. Users should upgrade to at least these versions to remediate the issue. Patch status is not explicitly stated in the vendor advisory, but the fix is included in these versions. Until upgraded, avoid passing untrusted input to APIs that construct SQL identifiers or aliases such as sql.identifier() and .as().
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/15/2026, 3:57:56 PM
Last updated: 5/21/2026, 8:04:32 PM
Views: 115
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.