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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 02 Dec 2026 17:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Knex through 3.3.0 SQL Injection via unescaped enu() schema builder values | |
| First Time appeared |
Knexjs
Knexjs knex |
|
| Weaknesses | CWE-89 | |
| CPEs | cpe:2.3:a:knexjs:knex:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Knexjs
Knexjs knex |
|
| References |
|
|
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-12-02T16:51:00.603Z
Reserved: 2026-12-02T15:28:34.495Z
Link: CVE-2026-142190
No data.
Status : Received
Published: 2026-12-02T17:17:40.050
Modified: 2026-12-02T17:17:40.050
Link: CVE-2026-142190
No data.
OpenCVE Enrichment
No data.
Weaknesses