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.
CVE-2026-76848
Score 7.5 from GitHub Security Advisory (severity: HIGH) published 2026-08-24. a secondary CVSS source baseline 7.5; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.5
- EG Score
- 7.5(high)
- EG Risk
- 49(Track)EG Risk 49/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation0% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 29%
- KEV
- Not listed
Published
August 24, 2026
Last Modified
August 24, 2026
Advisory Details (3)
Auto-updated Aug 24, 2026TypeORM 0.2.21 through 1.1.0 SQL Injection via SelectQueryBuilder.distinctOn | Advisories | VulnCheck
https://www.vulncheck.com/advisories/typeorm-through-sql-injection-via-selectquerybuilder-distinctontypeorm/src/query-builder/SelectQueryBuilder.ts at 1.1.0 · typeorm/typeorm · GitHub
https://github.com/typeorm/typeorm/blob/1.1.0/src/query-builder/SelectQueryBuilder.tsGitHub - typeorm/typeorm: TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more. · GitHub
https://github.com/typeorm/typeormVendor Advisories for CVE-2026-76848(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 27× in last 7d / 27× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-30 01:45 UTCEG score recompute
- 2026-08-30 01:45 UTCGHSA enrichment
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-29 13:07 UTCGHSA enrichment
- 2026-08-29 00:27 UTCEG score recompute
- 2026-08-29 00:27 UTCGHSA enrichment
- 2026-08-28 21:42 UTCEPSS rescore
- 2026-08-28 10:57 UTCGHSA enrichment
- 2026-08-27 22:15 UTCEG score recompute
- 2026-08-27 22:15 UTCGHSA enrichment
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-27 09:36 UTCGHSA enrichment
- 2026-08-26 20:56 UTCEG score recompute
- 2026-08-26 20:56 UTCGHSA enrichment
- 2026-08-26 14:47 UTCEPSS rescore
- 2026-08-26 08:18 UTCGHSA enrichment
- 2026-08-25 19:39 UTCEG score recompute
- 2026-08-25 19:39 UTCGHSA enrichment
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-25 07:01 UTCGHSA enrichment
- 2026-08-24 18:23 UTCEG score recompute
- 2026-08-24 18:22 UTCGHSA enrichment
- 2026-08-24 17:36 UTCEG score recompute
- 2026-08-24 17:36 UTCGHSA enrichment
- 2026-08-24 14:24 UTCEG score recompute
Show 2 moreShow fewer
- 2026-08-24 13:22 UTCEG score recompute
- 2026-08-24 13:22 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-76848?
When was CVE-2026-76848 disclosed?
Is CVE-2026-76848 actively exploited?
What is the CVSS score of CVE-2026-76848?
How do I remediate CVE-2026-76848?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-76848
Is Your Infrastructure Affected by CVE-2026-76848?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.