CVE-2026-54658
Received Received - Intake

SQL Injection in Hypequery TypeScript Semantic Layer

Vulnerability report for CVE-2026-54658, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-28

Last updated on: 2026-07-28

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-28
Last Modified
2026-07-28
Generated
2026-07-29
AI Q&A
2026-07-29
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
hypequery hypequery to 2.0.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Hypequery is a TypeScript tool for ClickHouse databases. A flaw in its escapeValue() function in versions before 2.0.2 fails to properly escape backslashes before single quotes during query parameter substitution. This allows attackers to inject arbitrary SQL by using a trailing backslash to escape the closing quote in a query.

Detection Guidance

To detect this vulnerability, check if your Hypequery version is prior to 2.0.2. Run: npm list hypequery or grep version in package.json. If vulnerable, update to 2.0.2 or later immediately.

Impact Analysis

This vulnerability could allow attackers to execute malicious SQL commands on your ClickHouse database. This may result in unauthorized data access, modification, deletion, or even full database compromise. The high CVSS score indicates a critical risk level.

Compliance Impact

This vulnerability could lead to unauthorized data access or breaches, which may violate GDPR's data protection requirements or HIPAA's security rules for protected health information. Compliance failures could result in legal penalties, fines, or reputational damage.

Mitigation Strategies

Update Hypequery to version 2.0.2 or later to fix the SQL injection vulnerability in escapeValue().

Review and audit any custom SQL queries using Hypequery to ensure no malicious parameters are being passed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54658. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart