@hypequery/clickhouse npm Package SQL Injection Vulnerability Warning
An SQL injection vulnerability has been reportedly discovered in the @hypequery/clickhouse npm package, specifically in the `escapeValue()` function, allowing arbitrary SQL execution. Versions prior to 2.0.2 appear to be affected.
What happened
An early warning has been issued regarding a critical vulnerability in the @hypequery/clickhouse npm package. The vulnerability, tracked as GHSA-6WCC-39RP-HH9P, involves a SQL injection flaw in the `escapeValue()` function, which could allow an attacker to execute arbitrary SQL commands. This issue is said to affect versions of the package prior to 2.0.2.
The vulnerability is under investigation, and while the details are still emerging, it is recommended that users of the @hypequery/clickhouse package upgrade to version 2.0.2 or later to mitigate potential risks. The patch for this vulnerability has been included in version 2.0.2.
Professional software engineers using this package in their projects should assess their exposure by checking their dependency versions. If any version prior to 2.0.2 is in use, an upgrade is advised. For more detailed information, consulting the primary sources, such as the GitHub Advisory Database, is recommended.
How 0Day mitigates this
@hypequery/clickhouse is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.