CVE Catalog

CVE-2026-54658

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.44%

36th percentile - higher than 36% of all known CVEs

Summary

In Hypequery before 2.5.1, escapeValue() did not escape backslashes before single quotes during parameter substitution, allowing SQL injection via trailing backslash. Fixed in 2.0.2 for string parameters, but 2.5.1 is the complete fix.

Risk Assessment

An attacker can manipulate SQL queries, potentially leading to unauthorized data access or modification.

Recommendation

Upgrade Hypequery to 2.5.1 or later. For versions 2.0.2-2.5.0, serialize non-scalar parameters with JSON.stringify() as a workaround.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS