# CVE-2026-39356: SQL Injection via escapeName() in all Drizzle ORM SQL dialects

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 30% of CVEs (2026-11-30)
- Published: 2026-04-07T19:58:46.348Z
- Modified: 2026-07-20T20:10:00.110Z
- Also known as: GHSA-gpj5-g38j-94v9
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- drizzle-team drizzle-orm: < 0.45.2; >= 1.0.0-beta.2, < 1.0.0-beta.20
- drizzle-orm (npm): before 0.45.2; from 1.0.0-beta.2 before 1.0.0-beta.20
- drizzle drizzle: before 0.45.2; 1.0.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/drizzle-team/drizzle-orm/security/advisories/GHSA-gpj5-g38j-94v9> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39356> (advisory)
- <https://github.com/drizzle-team/drizzle-orm> (package)

## Sources

- CVE List: [CVE-2026-39356](https://www.cve.org/CVERecord?id=CVE-2026-39356), CVE Terms of Use, modified 2026-04-08
- GitHub Advisory Database: [GHSA-gpj5-g38j-94v9](https://github.com/advisories/GHSA-gpj5-g38j-94v9), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-39356](https://nvd.nist.gov/vuln/detail/CVE-2026-39356), Public domain, modified 2026-07-20

---

Page: https://cve.day/CVE-2026-39356 · Whole record: https://cve.day/CVE-2026-39356.json · Rebuilt by cve.day 2026-11-25T22:59:18.160Z
