CVE-2026-142192: Knex through 3.3.0 SQL Injection via Oracle refreshMaterializedView View Name
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 DBMSMVIEW.REFRESH literal and append arbitrary PL/SQL statements that run with the database connection's privileges.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using npm/knex through version 3.3.0 with the Oracle dialect are exposed when they call refreshMaterializedView() with view or schema names influenced by an attacker. The injected PL/SQL executes with the privileges of the database connection used by the application.
What does an attacker need to exploit it?
An attacker needs the ability to supply a crafted view name or schema name to the Oracle dialect's refreshMaterializedView() call. The attack requires a value containing a single quote to terminate the DBMS_MVIEW.REFRESH literal and append PL/SQL.
Is this reachable through a default configuration?
The provided information identifies the vulnerable Oracle-dialect refreshMaterializedView() code path, but does not establish whether an application's default configuration calls it or exposes its view and schema name inputs to users.