---
title: "CVE-2026-142190: Knex - SQL Injection"
description: "Knex <= 3.3.0 contains an sql injection caused by improper sanitization of enum values in the enu() column method, letting attackers inject SQL into DDL statements, exploit requires crafted enum values with single quotes."
url: https://panop.io/threat-heartbeat/CVE-2026-142190/
---

# CVE-2026-142190 Knex - SQL Injection

Knex <= 3.3.0 contains an sql injection caused by improper sanitization of enum values in the enu() column method, letting attackers inject SQL into DDL statements, exploit requires crafted enum values with single quotes.

CVSS base score 7.5 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142190)

## Details

Type

SQL Injection

Impact

SQL Injection

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Published

2 December 2026

Updated

3 December 2026

Weakness

[CWE-89](https://cwe.mitre.org/data/definitions/89.html)

## Vendor fix

Update to a version later than 3.3.0 or the latest available version.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-142190](https://nvd.nist.gov/vuln/detail/CVE-2026-142190)
- [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/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/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/blob/3.3.0/lib/dialects/sqlite3/schema/sqlite-columncompiler.js#L16-L20)
- [https://github.com/knex/knex/issues/4481](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](https://www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-unescaped-enu-schema-builder-values)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
