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

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

AILast updated: 04/15/2026, 15:57:56 UTC

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().

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/15/2026, 3:57:56 PM

Last updated: 5/21/2026, 8:04:32 PM

Views: 115

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