Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39356: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in drizzle-team drizzle-orm

0
High
VulnerabilityCVE-2026-39356cvecve-2026-39356cwe-89
Published: Tue Apr 07 2026 (04/07/2026, 19:58:46 UTC)
Source: CVE Database V5
Vendor/Project: drizzle-team
Product: 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

AILast updated: 04/07/2026, 20:31:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses