SQL Injection via escapeName() in all Drizzle ORM SQL dialects

Summary

CVECVE-2026-39356
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-07 20:16:29 UTC
Updated2026-04-15 17:19:47 UTC
DescriptionDrizzle 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')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
3.1CNADECLARED7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS: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)

TypeVendorProductVersionUpdateEditionLanguage
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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report