CVE-2026-39356
published high CVSS 3.1 · 7.5SQL Injection via escapeName() in all Drizzle ORM SQL dialects
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| drizzle-team | — | drizzle-orm< 0.45.2 · >= 1.0.0-beta.2, < 1.0.0-beta.20 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| drizzle-team | drizzle-orm | < 0.45.2 (affected)>= 1.0.0-beta.2, < 1.0.0-beta.20 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
1Provider assertions
2GitHub_M · cna
SQL Injection via escapeName() in all Drizzle ORM SQL dialects
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9b207fd3467598e5421dd71ed61bdd33aa42e657c7d0ed0e139ce66722c5000e
- Ingested
- 23 Sep 2026, 09:12:08 UTC
- Source record
- Official CVE record