Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › knex

High 7.7 3 CVEs Analysis

Three HIGH-rated SQL injection flaws in Knex affect enum, Oracle and MSSQL code paths

NVD published three records on 2026-12-02 describing SQL injection in Knex through 3.3.0, each rated HIGH with CVSS 7.7. Crafted enum values, view names or table names can break out of string literals in generated SQL and run injected statements with the database connection's privileges.

What to look into

  • 3 vulnerabilities in knex: 3 high (CVSS up to 7.7).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-142190 (7.7 high): Knex through 3.3.0 contains an sql injection vulnerability that allows attackers to inject SQL into DDL statements by supplying enum values containing single quotes to the enu() column method. Attack… An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
  • 0 of 3 can be attacked over the network without logging in.
  • Kinds of flaws: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (×3).
DatabasesOracleVulnerabilitiesWeb

Key points

  • Three CVEs, all rated HIGH with CVSS 7.7, affecting Knex through 3.3.0
  • CVE-2026-142190 is an enu() enum injection in DDL, with SQLite and PostgreSQL effects described
  • CVE-2026-142192 allows PL/SQL injection via refreshMaterializedView() in the Oracle dialect
  • CVE-2026-142191 allows T-SQL injection via table or view names in the MSSQL dialect
  • The records give no fixed version, workaround or exploitation status

Three injection flaws in one batch

NVD published three records on 2026-12-02 covering Knex through version 3.3.0. Each is rated HIGH with a CVSS score of 7.7, and all three share the same underlying weakness: input placed into generated SQL is not isolated properly, so a single quote can end a string literal early and let the attacker add their own statements.

What the records describe

CVE-2026-142190 affects the enu() column method used in table definitions. Enum values containing single quotes can inject SQL into DDL statements. According to the record, an attacker can neutralize SQLite CHECK constraints, or run stacked statements such as DROP TABLE on PostgreSQL.

CVE-2026-142192 affects refreshMaterializedView() in the Oracle dialect. Crafted view or schema names can close the DBMSMVIEW.REFRESH literal and append arbitrary PL/SQL.

CVE-2026-142191 affects the MSSQL dialect. Table or view names containing a single quote can close the objectid() literal in dropTableIfExists, dropViewIfExists or createTableIfNotExists, allowing arbitrary T-SQL.

In each case, the records say the injected code runs with the privileges of the database connection Knex uses, so the impact depends on how much access that account holds.

What is not stated

The records do not name a fixed Knex version, a workaround or any detection method. They also do not say whether any of these flaws has been exploited in the wild. Administrators should therefore not assume a patch or mitigation exists yet, and should check the upstream project for guidance.

Teams that use Knex 3.3.0 or earlier with enum columns, Oracle materialized view refreshes or MSSQL drop and create helpers should give this batch priority, particularly where names or enum values can come from untrusted input.

Our article about all 3 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 3 vulnerabilities

  • CVE-2026-142190 7.7 Knex through 3.3.0 contains an sql injection vulnerability that allows attackers to inject SQL into DDL statements by supplying enum values containing single quotes to the enu() column method. Attackers can terminate the literal to neutral…
  • CVE-2026-142192 7.7 Knex through 3.3.0 contains an sql injection vulnerability in the Oracle dialect refreshMaterializedView() that allows attackers to inject PL/SQL by supplying crafted view or schema names. Attackers can include a single quote to close the…
  • CVE-2026-142191 7.7 Knex through 3.3.0 contains an sql injection vulnerability in the MSSQL dialect that allows attackers to inject T-SQL via table or view names. Attackers can supply names containing a single quote to close the objectid() literal in dropTabl…

Frequently asked questions

How many knex vulnerabilities were published on December 2, 2026?

3 vulnerabilities: 3 high, with CVSS scores up to 7.7.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-142190 (CVSS 7.7): Knex through 3.3.0 contains an sql injection vulnerability that allows attackers to inject SQL into DDL statements by supplying enum values containing single quotes to the enu() column method. Attack…

Original records