# CVE-2026-142192: Knex through 3.3.0 SQL Injection via Oracle refreshMaterializedView View Name

Source: https://aplosec.si/cve/CVE-2026-142192/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142192

High 7.7 · Reported · No fix listed · CWE-89 · npm

# Knex through 3.3.0 SQL Injection via Oracle refreshMaterializedView View Name

CVE-2026-142192 · published 2026-12-02

In plain words: this type of bug lets someone change the queries sent to the database (SQL injection). No fixed release is listed yet.

## Summary

CVE-2026-142192 affects knex (npm) <= 3.3.0: SQL Injection via Oracle refreshMaterializedView View Name (CWE-89). No fixed release is listed. CVSS 4.0 base score 7.7 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-oracle-refreshmaterializedview-view-name](https://www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-oracle-refreshmaterializedview-view-name)

- [Vulnerable codehttps://github.com/knex/knex/blob/3.3.0/lib/dialects/oracle/schema/oracle-compiler.js#L107-L113](https://github.com/knex/knex/blob/3.3.0/lib/dialects/oracle/schema/oracle-compiler.js#L107-L113)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142192](https://www.cve.org/CVERecord?id=CVE-2026-142192)

**Severity:** High 7.7 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142192)

**Package:** knex

**Ecosystem:** npm

**Affected:** <= 3.3.0

**Fixed:** None

**Weakness:** CWE-89

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
