CVE-2026-76848 describes a SQL injection vulnerability in TypeORM's SelectQueryBuilder.distinctOn method. The method accepts an array of strings and interpolates them directly into SQL statements without any validation, escaping, quoting, or allowlist checking. This affects PostgreSQL-family drivers where the distinctOn values are injected into SELECT DISTINCT ON expressions. An attacker who can control the values passed to distinctOn can inject arbitrary SQL expressions, including correlated subqueries, enabling data exfiltration via boolean or time-based inference attacks. The vulnerability is particularly dangerous when applications forward client-controlled values into distinctOn for dynamic column selection. Notably, the validateOrderByCondition allowlist check that protects the orderBy family is not applied to the distinctOn path, leaving it unguarded.