Skip to main content

Knex

4 CVEs product

Monthly

CVE-2026-142190 Dec 02, 16:51 HIGH This Week

SQL injection in Knex through 3.3.0 lets attackers who can influence values passed to the enu() schema-builder column method break out of a string literal in generated DDL, neutralizing SQLite CHECK constraints or running stacked statements such as DROP TABLE on PostgreSQL with the database connection's privileges. Reachability is limited: schema and enum definitions are normally developer-controlled, so exploitation requires the uncommon pattern of routing untrusted input into DDL/schema-building code, consistent with the assessed AC:H, AT:P and PR:L metrics. No public exploit was identified at time of analysis, and the decision label places remediation in the this_week queue.

SQLi PostgreSQL Sqlite Knex
NVD GitHub
CVSS 4.0
7.7
CVE-2026-142191 Dec 02, 16:50 HIGH This Week

SQL injection in Knex through 3.3.0 (MSSQL dialect) lets an attacker who can influence a table or view name passed to dropTableIfExists, dropViewIfExists, or createTableIfNotExists break out of the generated object_id() string literal and append arbitrary T-SQL, executed with the database connection's privileges. The CVSS vector requires authenticated access (PR:L) plus attack requirements present (AT:P) and high attack complexity (AC:H), and exposure is limited to applications using the MSSQL dialect and routing untrusted identifier values into those three schema-builder methods. No public exploit code or confirmed active exploitation was identified at time of analysis, and the priority is to remediate this week.

SQLi Knex
NVD GitHub
CVSS 4.0
7.7
CVE-2026-142192 Dec 02, 16:50 HIGH This Week

SQL injection in the Oracle dialect of the Knex.js query builder, affecting versions through 3.3.0, lets an attacker who can influence the view or schema name passed to refreshMaterializedView() break out of the DBMS_MVIEW.REFRESH string literal with a single quote and append arbitrary PL/SQL that executes with the database connection's privileges. Exploitation is conditional rather than universal: the application must be using the Oracle dialect specifically (MySQL, PostgreSQL and SQLite code paths are unaffected), must call this schema-building method, and must feed it untrusted input - the CVSS 4.0 vector rates the attack complex and requires low-level privileges (AC:H, AT:P, PR:L), and the independent assessment reaches the same conditional conclusion for a CVSS 3.1 score of 7.7. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; priority is 'this_week' rather than emergency response.

SQLi Node.js Oracle Knex
NVD GitHub
CVSS 4.0
7.7
CVE-2019-10757 Oct 08, 20:15 npm CRITICAL POC PATCH Act Now

knex.js versions before 0.19.5 are vulnerable to SQL Injection attack. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.

SQLi Knex
NVD
CVSS 3.1
9.8
EPSS
1.2%
CVSS 7.7
HIGH This Week

SQL injection in Knex through 3.3.0 lets attackers who can influence values passed to the enu() schema-builder column method break out of a string literal in generated DDL, neutralizing SQLite CHECK constraints or running stacked statements such as DROP TABLE on PostgreSQL with the database connection's privileges. Reachability is limited: schema and enum definitions are normally developer-controlled, so exploitation requires the uncommon pattern of routing untrusted input into DDL/schema-building code, consistent with the assessed AC:H, AT:P and PR:L metrics. No public exploit was identified at time of analysis, and the decision label places remediation in the this_week queue.

SQLi PostgreSQL Sqlite +1
NVD GitHub
CVSS 7.7
HIGH This Week

SQL injection in Knex through 3.3.0 (MSSQL dialect) lets an attacker who can influence a table or view name passed to dropTableIfExists, dropViewIfExists, or createTableIfNotExists break out of the generated object_id() string literal and append arbitrary T-SQL, executed with the database connection's privileges. The CVSS vector requires authenticated access (PR:L) plus attack requirements present (AT:P) and high attack complexity (AC:H), and exposure is limited to applications using the MSSQL dialect and routing untrusted identifier values into those three schema-builder methods. No public exploit code or confirmed active exploitation was identified at time of analysis, and the priority is to remediate this week.

SQLi Knex
NVD GitHub
CVSS 7.7
HIGH This Week

SQL injection in the Oracle dialect of the Knex.js query builder, affecting versions through 3.3.0, lets an attacker who can influence the view or schema name passed to refreshMaterializedView() break out of the DBMS_MVIEW.REFRESH string literal with a single quote and append arbitrary PL/SQL that executes with the database connection's privileges. Exploitation is conditional rather than universal: the application must be using the Oracle dialect specifically (MySQL, PostgreSQL and SQLite code paths are unaffected), must call this schema-building method, and must feed it untrusted input - the CVSS 4.0 vector rates the attack complex and requires low-level privileges (AC:H, AT:P, PR:L), and the independent assessment reaches the same conditional conclusion for a CVSS 3.1 score of 7.7. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; priority is 'this_week' rather than emergency response.

SQLi Node.js Oracle +1
NVD GitHub
EPSS 1% CVSS 9.8
CRITICAL POC PATCH Act Now

knex.js versions before 0.19.5 are vulnerable to SQL Injection attack. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.

SQLi Knex
NVD

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy