{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.3.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "e25d54bcb707714a17f5a5744eba5c4246bb4d1d"
            }
          ],
          "repo": "https://github.com/knex/knex",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142192.json"
  },
  "details": "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.",
  "id": "CVE-2026-142192",
  "modified": "2026-12-02T17:45:17.961342624Z",
  "published": "2026-12-02T16:50:58.376Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142192.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/knex/knex"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/knex/knex/blob/3.3.0/lib/dialects/oracle/schema/oracle-compiler.js#L107-L113"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142192"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-oracle-refreshmaterializedview-view-name"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Knex through 3.3.0 SQL Injection via Oracle refreshMaterializedView View Name"
}