CVE-2026-142190

7.5High

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
Low
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-89

What an attacker gets

Authenticated attackers can execute arbitrary SQL commands or bypass database constraints. This requires the ability to supply input to the enu() column method in the application.

Root cause

The enu() column method fails to properly sanitize enum values containing single quotes before including them in DDL statements.

Affected versions

Knex through 3.3.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to a version beyond 3.3.0 when available. Until then, sanitize all input passed to the enu() method to ensure it does not contain single quotes.

remediation — bash
$ npm list knex

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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 neutralize SQLite CHECK constraints or execute stacked statements like DROP TABLE on PostgreSQL with the database connection's privileges.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-142190

More fully triaged vulnerabilities you may want to check next.