SQL Injection via escapeName() in all Drizzle ORM SQL dialects
Summary
| CVE | CVE-2026-39356 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-07 20:16:29 UTC |
| Updated | 2026-04-15 17:19:47 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS: 0.000430000 probability, percentile 0.130210000 (date 2026-04-13)
Problem Types: CWE-89 | CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Drizzle | Drizzle | All | All | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta1 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta11 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta12 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta13 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta14 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta15 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta16 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta17 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta18 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta19 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta2 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta3 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta4 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta5 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta6 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta7 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta8 | All | All |
| Application | Drizzle | Drizzle | 1.0.0 | beta9 | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Drizzle-team | Drizzle-orm | affected < 0.45.2 | Not specified |
| CNA | Drizzle-team | Drizzle-orm | affected >= 1.0.0-beta.2, < 1.0.0-beta.20 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/drizzle-team/drizzle-orm/security/advisories/GHSA-gpj5-g38j-94v9 | [email protected] | github.com | Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.