CVE-2026-54658@hypequery/clickhouse has SQL Injection in parameter escaping that allows arbitrary SQL execution
- 9.8CriticalCVSS base score
- 0.82%Exploitation in 30 daysEPSS · top 42% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
Hypequery is a TypeScript semantic layer for ClickHouse. Prior to 2.5.1, escapeValue() in packages/clickhouse/src/core/utils.ts did not escape backslashes before single quotes during parameter substitution, allowing attacker controlled query parameters with a trailing backslash to escape the closing quote and inject arbitrary SQL. This issue is fixed in version 2.0.2. Version 2.0.2 fixes string parameters, while version 2.5.1 fixes all known vectors. Upgrading to 2.5.1 or later is the only complete fix. In versions 2.0.2 through 2.5.0, serializing non-scalar parameters with JSON.stringify() before passing them is a workaround for the object/array vector only.
Timeline
ID reserved
By GitHub_M
- 43 days later
· 43 days later
Published
- 7 days later
· 7 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.82% · top 42% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@hypequery/clickhouseGHSA-6wcc-39rp-hh9p (opens in a new tab)
References
References8
- https://github.com/hypequery/hypequery/security/advisories/GHSA-6wcc-39rp-hh9p (opens in a new tab)x_refsource_CONFIRM
- https://github.com/hypequery/hypequery/pull/349 (opens in a new tab)x_refsource_MISC
- https://github.com/hypequery/hypequery/commit/2879161a810fed2c2222f785816ff05510976960 (opens in a new tab)x_refsource_MISC
- https://github.com/hypequery/hypequery/commit/2dc1df7bae (opens in a new tab)x_refsource_MISC
- https://github.com/hypequery/hypequery/commit/4dfa9d77d70a08b970e722268b75ca7d13db0bdf (opens in a new tab)x_refsource_MISC
- https://github.com/hypequery/hypequery/blob/main/packages/clickhouse/CHANGELOG.md#202 (opens in a new tab)x_refsource_MISC
- https://github.com/hypequery/hypequery/releases/tag/@hypequery/[email protected] (opens in a new tab)x_refsource_MISC
- https://github.com/hypequery/hypequery/releases/tag/@hypequery/[email protected] (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-50086 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-6wcc-39rp-hh9p (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-54658)Record last updated .