CVE-2026-142190: Vulnerability in Knex

Patch soon. 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.

CWE-89

Exploitation
None confirmed
Severity
7.7 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-9hx6-vfgp-fg3m
Vector
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
Weakness
CWE-89
Published
2 Dec 2026
Last change
5 Dec 2026

Affected products

Affected versions and the first fixed release

  • Knex Through 3.3.0. No fixed version recorded
  • @mikro-orm Knex Version 0 ≤3.3.0. No fixed version recorded

Advisories

Vendor and security advisories

Related