Read the docs
TI-2026-39484 Aliases CVE-2026-54658GHSA-6wcc-39rp-hh9p

@hypequery/clickhouse has SQL Injection in parameter escaping that allows arbitrary SQL execution

Priority MEDIUM 50CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00816 57th percentileScored 2026-11-07
Fix Fixed hypequery (hypequery): 2.5.1@hypequery/clickhouse (npm): 2.5.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
hypequeryhypequerybefore 2.5.12.5.1Patch availableCNA
—@hypequery/clickhouse (npm)before 2.5.12.5.1Patch availableGHSA-6wcc-39rp-hh9p
  • hypequery Vendorhypequery Affected before 2.5.1 Fixed in 2.5.1 Patch available CNA
  • @hypequery/clickhouse (npm) Vendor— Affected before 2.5.1 Fixed in 2.5.1 Patch available GHSA-6wcc-39rp-hh9p

Remediation

  • Fix · CNA hypequery (hypequery) Fixed in 2.5.1
  • Fix · GHSA-6wcc-39rp-hh9p @hypequery/clickhouse (npm) Fixed in 2.5.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-54658
  2. 2026-10-03 Alias added: GHSA-6wcc-39rp-hh9p

References

Sources