Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

SQL Injection via escapeName() in all Drizzle ORM SQL dialects

CVSS 3.1 7.5 HIGHEUVD CVSS 3.1 7.5 CVSS 3.1 · [email protected] · Secondary 7.5 HIGHCVSS_V3 Publisher rating HIGHFixed by drizzle-orm 0.45.2Fixed by drizzle-orm 1.0.0-beta.20KEV status unknown

cve-program · CVE-2026-39356

Published

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.

Read the publisher's advisory

euvd · EUVD-2026-19909

Published

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.

Read the publisher's advisory

nvd · CVE-2026-39356

Published

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.

Read the publisher's advisory

osv · GHSA-gpj5-g38j-94v9

Published

### Summary 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. ### Affected components The issue affects the identifier escaping logic used by the PostgreSQL, MySQL, SQLite, SingleStore, and Gel dialects. ### Impact This issue only affects applications that pass untrusted runtime input into identifier or alias construction. Common examples include dynamic sorting, dynamic report builders, and CTE or alias names derived from request parameters. Depending on the database dialect, query context, and database permissions, successful exploitation may enable blind or direct data disclosure, schema enumeration, query manipulation, privilege escalation, or destructive operations. Applications that use only static schema objects, or that strictly map user input through an allowlist of known column or alias names, are not affected. ### Details In affected versions, `escapeName()` wrapped the identifier but did not escape the quote delimiter inside the identifier value: - PostgreSQL / SQLite / Gel: `"` was not doubled to `""` - MySQL / SingleStore: `` ` `` was not doubled to `` `` `` Because of this, crafted input containing the dialect-specific identifier delimiter could break out of the quoted identifier and be interpreted as SQL syntax. A representative vulnerable pattern is dynamic sorting using untrusted input: ```ts const sortField = req.query.sort || 'id'; const rows = await db .select() .from(users) .orderBy(sql.identifier(sortField));

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2026-39356

Published

drizzle-orm

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "drizzle-team",
                    "product": "drizzle-orm",
                    "versions": [
                        {
                            "version": "< 0.45.2",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.0.0-beta.2, < 1.0.0-beta.20",
                            "status": "affected"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2026-19909

Published

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Apr 7, 2026, 7:58:46 PM

dateUpdated: Apr 8, 2026, 2:33:54 PM

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2026-39356

Published

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Analyzed

Weakness classifications: CWE-89

Original publisher date fields

published: 2026-04-07T20:16:29.610

lastModified: 2026-07-20T20:10:00.110

19 source CPE criteria · context only
  • cpe:2.3:a:drizzle:drizzle:*:*:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta1:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta11:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta12:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta13:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta14:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta15:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta16:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta17:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta18:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta19:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta2:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta3:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta4:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta5:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta6:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta7:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta8:*:*:*:node.js:*:*
  • cpe:2.3:a:drizzle:drizzle:1.0.0:beta9:*:*:*:node.js:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-gpj5-g38j-94v9

Published

drizzle-orm

npm

SEMVER · introduced 0 → fixed 0.45.2

drizzle-orm

npm

SEMVER · introduced 1.0.0-beta.2 → fixed 1.0.0-beta.20

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 24 Nov 11:53 UTC · 274 of 275 readable · 272 fully read · documentation 469/469 current