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

High 7.5 Published Updated

Attackers can inject SQL via improper identifier escaping in Drizzle ORM, potentially leading to data theft or modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-39356?

CVE-2026-39356 is a high-severity SQL injection vulnerability in drizzle-team drizzle-orm, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-89

Which versions are affected by CVE-2026-39356?

4 open source packages ship an affected version, including drizzle-orm. It affects 1 product.

PackageAffectedFixed in
drizzle-orm npmAll versions0.45.2
drizzle-orm npmAll versions0.45.2
drizzle-orm npmFrom 1.0.0-beta.21.0.0-beta.20
drizzle-orm npmFrom 1.0.0-beta.21.0.0-beta.20

Products include Drizzle Drizzle.

How do I fix CVE-2026-39356?

Upgrade drizzle-orm to a fixed version for your release line: 0.45.2 or 1.0.0-beta.20.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-39356 being exploited?

There is no known exploitation of CVE-2026-39356 in the wild and no public exploit code.

Sources

Also known as GHSA-gpj5-g38j-94v9.

Is CVE-2026-39356 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free