Knex through 3.3.0 contains an sql injection vulnerability that allows attackers to inject SQL into DDL statements by supplying enum values…
CVE-2026-142190
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.
Assessment
- CVSS
- 7.7 (v4.0)
- Severity
- High
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 2 December 2026
- Last updated
- 2 December 2026
- Weakness
- CWE-89
- Assigner
- VulnCheck
CVSS vectorCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
At the source
References
- 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://github.com/knex/knex/issues/4481
- https://www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-unescaped-enu-schema-builder-values
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-142190