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

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.

Published: 2026-04-07 Last update: 2026-04-15 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-39356 is rated Low Risk (33.3/100): CVSS High severity, with low exploitation likelihood (EPSS 0.03%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-39356

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-08 0.03%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-39356

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2026-39356

GitHub Security Advisory for CVE-2026-39356

GHSA-gpj5-g38j-94v9 · Severity: high · Ecosystem: npm — Drizzle ORM has SQL injection via improperly escaped SQL identifiers

Affected software / configurations for CVE-2026-39356

Vendor Product Version Raw CPE
drizzle drizzle < 0.45.2 cpe:2.3:a:drizzle:drizzle:*:*:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta1:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta11:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta12:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta13:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta14:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta15:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta16:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta17:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta18:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta19:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta2:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta3:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta4:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta5:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta6:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta7:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta8:*:*:*:node.js:*:*
drizzle drizzle 1.0.0 cpe:2.3:a:drizzle:drizzle:1.0.0:beta9:*:*:*:node.js:*:*

References for CVE-2026-39356

cvelogic Threat Intelligence