Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. drizzle-orm
  4. ›
  5. CVE-2026-39356

CVE-2026-39356: Drizzle ORM has SQL injection via improperly escaped SQL identifiers

April 8, 2026

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.

References

  • github.com/advisories/GHSA-gpj5-g38j-94v9
  • github.com/drizzle-team/drizzle-orm
  • github.com/drizzle-team/drizzle-orm/security/advisories/GHSA-gpj5-g38j-94v9
  • nvd.nist.gov/vuln/detail/CVE-2026-39356

Code Behaviors & Features

Detect and mitigate CVE-2026-39356 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.45.2, all versions starting from 1.0.0-beta.2 before 1.0.0-beta.20

Fixed versions

  • 0.45.2
  • 1.0.0-beta.20

Solution

Upgrade to versions 0.45.2, 1.0.0-beta.20 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

npm/drizzle-orm/CVE-2026-39356.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:24 +0000.