Knex through 3.3.0 SQL Injection via unescaped enu() schema builder values
- Exploited
- No known exploitation
- Fix
- No fix listed
- Who is exposed
- Not reported
Summary
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.
What to do
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-142190 (Knex through 3.3.0 SQL Injection via unescaped enu() schema builder values), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-142190 (entry last updated 2026-12-02):
Affected:
- npm package knex: through 3.3.0
Fixed versions: none listed yet.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-142190 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-142190 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (npm): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/knex/knex/issues/4481
- https://github.com/knex/knex/blob/3.3.0/lib/dialects/mysql/schema/mysql-columncompiler.js#L63-L65
- https://github.com/knex/knex/blob/3.3.0/lib/dialects/postgres/schema/pg-columncompiler.js#L25-L48
- https://github.com/knex/knex/blob/3.3.0/lib/dialects/sqlite3/schema/sqlite-columncompiler.js#L16-L20
- https://www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-unescaped-enu-schema-builder-values
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-142190
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-142190"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure3/25Reachable over the network · Unknown: No advisory context yet
- Reach10/20Affects npm packages
- Severity7.7/10CVSS 7.7
- No patch5/5No patch listed yet
What would change the score
- Would score about 81 if added to CISA KEV
- Would score about 76 if CISA's SSVC rates exploitation active
- Would score about 45 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 7
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-142190 |
| Record | NVD · CVE-2026-142190 |
| Other links 5 | |
| Report | GitHub · knex/knex · Issue #4481 |
| Repository | GitHub · knex/knex · lib/dialects/mysql/schema/mysql-columncompiler.js · L63-L65 |
| Repository | GitHub · knex/knex · lib/dialects/postgres/schema/pg-columncompiler.js · L25-L48 |
| Repository | GitHub · knex/knex · lib/dialects/sqlite3/schema/sqlite-columncompiler.js · L16-L20 |
| Link | vulncheck.com · advisories/knex-through-3.3.0-sql-injection-via-unescaped-enu-schema-builder-values |
Questions about CVE-2026-142190
Is CVE-2026-142190 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-142190?
knex (npm): through 3.3.0.
Source: cve.now feed data
Related
- CVE-2019-10757knex.js versions before 0.19.5 are vulnerable to SQL Injection attack.
- CVE-2026-142191Knex through 3.3.0 SQL Injection via MSSQL dropTableIfExists, dropViewIfExists and createTableIfNotExists
- CVE-2026-142192Knex through 3.3.0 SQL Injection via Oracle refreshMaterializedView View Name
- CVE-2016-20018Knex Knex.js through 2.3.0 has a limited SQL injection vulnerability that can be exploited to ignore the WHERE clause of a SQL query.
- CVE-2026-104695SQL Injection 3K Software's Smart Mite Web Konsol
- CVE-2026-132092Potential SQL injection in range and in lookups
No corrections so far. Something wrong on this page? Report an error.