Vulnerability · Published Apr 7, 2026 · Assigned by GitHub_M

CVE-2026-39356SQL Injection via escapeName() in all Drizzle ORM SQL dialects

High 7.5

In plain English

A high-severity SQL injection in drizzle-orm from drizzle-team. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 65.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdrizzle-orm0.45.2GHSA-gpj5-g38j-94v9
npmdrizzle-orm1.0.0-beta.20GHSA-gpj5-g38j-94v9

Affected products (as reported)

VendorProductVersions
drizzle-team drizzle-orm < 0.45.2>= 1.0.0-beta.2, < 1.0.0-beta.20

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References