{"id":"CVE-2026-39356","published":"2026-04-07T19:58:46Z","modified":"2026-04-08T14:33:54Z","title":"SQL Injection via escapeName() in all Drizzle ORM SQL dialects","vendor":"drizzle-team","product":"drizzle-orm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00408,"percentile":0.35563,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/drizzle-team/drizzle-orm/security/advisories/GHSA-gpj5-g38j-94v9","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.11},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"drizzle-team","affectedVersions":[{"vendor":"drizzle-team","product":"drizzle-orm","versions":["< 0.45.2",">= 1.0.0-beta.2, < 1.0.0-beta.20"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-08T14:33:41.458749Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"drizzle-orm","vulnerableRanges":["<0.45.2",">=1.0.0-beta.2, <1.0.0-beta.20"],"patched":["0.45.2","1.0.0-beta.20"],"from":["GHSA-gpj5-g38j-94v9"],"provenance":"source"}],"summary":{"text":"The drel-team Drizzle ORM (drizzle-orm) has a flaw in its dialect-specific escapeName() implementations, which fail to escape embedded identifier delimiters before wrapping SQL identifiers in quotes or backticks. An attacker can inject SQL when an application passes attacker-controlled input to APIs that construct identifiers or aliases, such as sql.identifier() or .as(), and the attack requires only network access with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:26Z"},"euvd":{"id":"EUVD-2026-19909","exploited":false,"provenance":"source"}}