CVE-2026-39356

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

Published Apr 7, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gpj5-g38j-94v9 Drizzle ORM has SQL injection via improperly escaped SQL identifiers
History
Type Values Removed Values Added
First Time appeared Drizzle
Drizzle drizzle
CPEs cpe:2.3:a:drizzle:drizzle:*:*:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta11:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta12:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta13:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta14:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta15:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta16:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta17:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta18:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta19:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta1:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta2:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta3:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta4:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta5:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta6:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta7:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta8:*:*:*:node.js:*:*
cpe:2.3:a:drizzle:drizzle:1.0.0:beta9:*:*:*:node.js:*:*
Vendors & Products Drizzle
Drizzle drizzle
Type Values Removed Values Added
First Time appeared Drizzle-team
Drizzle-team drizzle-orm
Vendors & Products Drizzle-team
Drizzle-team drizzle-orm
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title SQL Injection via escapeName() in all Drizzle ORM SQL dialects
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 8, 2026, 2:33 PM
Reserved
Apr 6, 2026, 9:29 PM
Status
Analyzed
Published
Apr 7, 2026, 8:16 PM
Modified
Jul 20, 2026, 8:10 PM