---
title: "CVE-2026-54658: @hypequery/clickhouse has SQL Injection in parameter escaping that allows arbitrary SQL execution"
url: https://erroneo.us/security/cve/CVE-2026-54658/
description: "CVE-2026-54658 (@hypequery/clickhouse (npm)): Hypequery is a TypeScript semantic layer for ClickHouse. Prior to 2.5.1, escapeValue() in…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-07-28
date_modified: 2026-08-04
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-54658"
kev: false
cvss: 9.8
epss: 0.00816
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-54658: @hypequery/clickhouse has SQL Injection in parameter escaping that allows arbitrary SQL execution

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.8% , percentile 57: FIRST’s model estimates a 0.8% chance of exploitation activity in the next 30 days, higher than 57% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes @hypequery/clickhouse (npm) < 2.0.2, fixed in 2.5.1 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `@hypequery/clickhouse` < 2.0.2 → fixed: 2.5.1

## Affected products (CVE record)

- hypequery hypequery: < 2.5.1

## Severity

- GitHub_M CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.82% probability of exploitation activity in the next 30 days; percentile 57.

## Sources

- [GitHub Advisory GHSA-6wcc-39rp-hh9p](https://github.com/advisories/GHSA-6wcc-39rp-hh9p)
- [CVE.org record CVE-2026-54658](https://www.cve.org/CVERecord?id=CVE-2026-54658)
- [NVD entry CVE-2026-54658](https://nvd.nist.gov/vuln/detail/CVE-2026-54658)
- [github.com](https://github.com/hypequery/hypequery/security/advisories/GHSA-6wcc-39rp-hh9p)
- [github.com](https://github.com/hypequery/hypequery/pull/349)
- [github.com](https://github.com/hypequery/hypequery/commit/2879161a810fed2c2222f785816ff05510976960)
- [github.com](https://github.com/hypequery/hypequery/commit/2dc1df7bae)
- [github.com](https://github.com/hypequery/hypequery/commit/4dfa9d77d70a08b970e722268b75ca7d13db0bdf)
- [github.com](https://github.com/hypequery/hypequery/blob/main/packages/clickhouse/CHANGELOG.md#202)
- [github.com](https://github.com/hypequery/hypequery/releases/tag/@hypequery/clickhouse@2.0.2)
- [github.com](https://github.com/hypequery/hypequery/releases/tag/@hypequery/clickhouse@2.5.1)

---
Source page: https://erroneo.us/security/cve/CVE-2026-54658/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
