CVE-2026-54658

CRITICAL

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

Title source: cna
STIX 2.1

Description

Hypequery is a TypeScript semantic layer for ClickHouse. Prior to 2.0.2, 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.

Scores

CVSS v3 9.8
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-89
Status published
Products (2)
hypequery/clickhouse 0 - 2.0.2npm
hypequery/hypequery < 2.0.2
Published Jul 28, 2026
Tracked Since Jul 29, 2026