Intel

AIKIDO-2026-10469

knex is vulnerable to SQL Injection

SQL Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

82

High Risk

This Affects:

JSknex
0.0.1 - 3.2.8
Fixed in 3.2.9

TL;DR

Affected versions of this package are vulnerable to SQL injection due to improper handling of inputs passed to search_path for Postgres dialect. The affected logic allows user-controlled values to be treated as column or table identifiers without enforcing strict validation or escaping, causing them to be interpolated directly into generated SQL. An attacker able to influence these identifier parameters can inject crafted SQL fragments that alter query structure, potentially bypassing intended conditions or executing unintended database operations.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you are using a Postgres database.

Background info

knex is vulnerable to SQL Injection in versions 0.0.1 - 3.2.8.

How to fix this

Upgrade the knex library to the patch version.