This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.
No vendor fix or workaround currently provided.
OpenCVE Recommended Actions
- Upgrade TypeORM to a release newer than 1.1.0 where distinctOn input is validated and properly escaped.
- Remove or sanitize any code paths that pass user input directly to SelectQueryBuilder.distinctOn, ensuring only trusted column names are allowed.
- Apply an explicit whitelist check for distinctOn arguments, mirroring the validateOrderByCondition logic used for orderBy clauses, to defend against injection.
Generated by OpenCVE AI on August 24, 2026 at 17:14 UTC.
Tracking
Sign in to view the affected projects.
No advisories yet.
Thu, 03 Sep 2026 16:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Title | TypeORM 0.2.21 through 1.1.0 SQL Injection via SelectQueryBuilder.distinctOn | typeorm: TypeORM: Information disclosure via SQL injection in SelectQueryBuilder.distinctOn |
| Metrics |
ssvc
|
Thu, 03 Sep 2026 15:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV4_0
|
Thu, 03 Sep 2026 15:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | TypeORM's SelectQueryBuilder.distinctOn accepts an array of strings and stores it on the expression map without validation. For PostgreSQL-family drivers, createSelectDistinctExpression in src/query-builder/SelectQueryBuilder.ts joins that array and interpolates the result into the generated statement as SELECT DISTINCT ON (values), with no escaping, quoting, identifier validation or allowlist, and without routing the values through replacePropertyNames or the driver's escape helper. Because the interpolation point is a parenthesized SQL expression list rather than an identifier-only position, a supplied element may carry arbitrary expressions, including correlated subqueries. An application that forwards a client-controlled value into distinctOn, for instance to let a caller choose a deduplication column, allows that client to read data anywhere the application's database role can reach through boolean or time-based inference, independently of the entity being queried. validateOrderByCondition, the allowlist check guarding the orderBy family in the same class, is not applied to this path. | This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. |
| CPEs | ||
| Metrics |
cvssV4_0
|
cvssV4_0
|
Thu, 27 Aug 2026 18:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
Mon, 24 Aug 2026 18:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Mon, 24 Aug 2026 13:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | TypeORM's SelectQueryBuilder.distinctOn accepts an array of strings and stores it on the expression map without validation. For PostgreSQL-family drivers, createSelectDistinctExpression in src/query-builder/SelectQueryBuilder.ts joins that array and interpolates the result into the generated statement as SELECT DISTINCT ON (values), with no escaping, quoting, identifier validation or allowlist, and without routing the values through replacePropertyNames or the driver's escape helper. Because the interpolation point is a parenthesized SQL expression list rather than an identifier-only position, a supplied element may carry arbitrary expressions, including correlated subqueries. An application that forwards a client-controlled value into distinctOn, for instance to let a caller choose a deduplication column, allows that client to read data anywhere the application's database role can reach through boolean or time-based inference, independently of the entity being queried. validateOrderByCondition, the allowlist check guarding the orderBy family in the same class, is not applied to this path. | |
| Title | TypeORM 0.2.21 through 1.1.0 SQL Injection via SelectQueryBuilder.distinctOn | |
| First Time appeared |
Typeorm
Typeorm typeorm |
|
| Weaknesses | CWE-89 | |
| CPEs | cpe:2.3:a:typeorm:typeorm:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Typeorm
Typeorm typeorm |
|
| References |
| |
| Metrics |
cvssV3_1
|
Status: REJECTED
Assigner: VulnCheck
Published:
Updated: 2026-09-03T14:58:02.799Z
Reserved: 2026-08-19T20:34:19.724Z
Link: CVE-2026-76848
Updated:
Status : Rejected
Published: 2026-08-24T14:17:03.013
Modified: 2026-09-03T15:17:33.633
Link: CVE-2026-76848
OpenCVE Enrichment
Updated: 2026-08-24T17:15:05Z
-
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')