SCA: security update for @hypequery/clickhouse (GHSA-6wcc-39rp-hh9p)

critical Tenable Cloud Security Plugin ID 445423

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-54658)

Solution

Update the @hypequery/clickhouse library and its related packages to version 2.5.1 or later.

See Also

https://github.com/advisories/GHSA-6wcc-39rp-hh9p

Plugin Details

Severity: Critical

ID: 445423

Version: Revision 1.3

Type: Local

Family: SCA Checks

Published: 7/29/2026

Updated: 8/5/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.15

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-54658

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 7/28/2026

Vulnerability Publication Date: 7/28/2026

Reference Information

CVE: CVE-2026-54658

cwe: CWE-89