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.
- CVSS
- 7.5High
- Chance of exploitation (EPSS)
- 0.49%
- Published
- Dec 2, 2026
- In the news
- Not yet
What to do
A serious SQL injection flaw in Knex that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Knex
- Through 3.3.0
Description
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 DBMS_MVIEW.REFRESH literal and append arbitrary PL/SQL statements that run with the database connection's privileges.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-142192 published (CVSS 7.5) (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Dec 2, 2026
- CVECVE-2026-142192 published (CVSS 7.5)CVE Program · 16:50 UTC
References 2
- github.com /knex/knex/blob/3.3.0/lib/dialects/oracle/schema/oracle-compiler.js#L107-L113
- www.vulncheck.com /advisories/knex-through-3.3.0-sql-injection-via-oracle-refreshmaterializedview-view-name