CVE Catalog

CVE-2026-39356

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.39%

32th percentile - higher than 32% of all known CVEs

Summary

Drizzle ORM before versions 0.45.2 and 1.0.0-beta.20 improperly escapes quoted SQL identifiers in its escapeName() function. An attacker can inject SQL by passing controlled input to APIs like sql.identifier() or .as().

Risk Assessment

The organization is at risk of SQL injection attacks, which can lead to unauthorized data access, modification, deletion, or full database compromise.

Recommendation

Immediately update Drizzle ORM to version 0.45.2 or 1.0.0-beta.20 (or later). In the meantime, avoid passing user-controlled input to sql.identifier() and .as() functions without proper validation.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS