P2 · HighCVSS 7.5EPSS 0.6%
Knex through 3.3.0 SQL Injection via unescaped enu() schema builder values
- CVE-2026-142190
- GHSA-9hx6-vfgp-fg3m
- EUVD-2026-141515
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.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
knex
Affected versions Fixed in up to 3.3.0 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.