SQL Injection Vulnerability in TypeORM's SelectQueryBuilder for PostgreSQL Drivers
CVE-2026-76848

8.7HIGH

Key Information:

Vendor

Typeorm

Status
Vendor
CVE Published:
24 August 2026

What is CVE-2026-76848?

The vulnerability in TypeORM's SelectQueryBuilder allows an attacker to perform SQL injection through the distinctOn method. The method accepts an unvalidated array of strings which can lead to arbitrary SQL expressions being executed. As a result, if an application allows client-controlled input to influence the distinctOn value directly, it could inadvertently expose sensitive data from any accessible part of the database. The absence of proper escaping, quoting, or validation permits exploitation in applications relying on PostgreSQL drivers. This could potentially allow an attacker to utilize boolean or time-based inference methods to extract unauthorized data, thus significantly compromising application security.

Affected Version(s)

typeorm 0.2.21 <= 1.1.0

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Muhammad Sobirov
.