CVE-2026-142190

Source
https://cve.org/CVERecord?id=CVE-2026-142190
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142190.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142190
Published
2026-12-02T16:51:00Z
Modified
2026-12-02T18:00:35Z
Severity
  • 7.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Knex through 3.3.0 SQL Injection via unescaped enu() schema builder values
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-89"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142190.json"
}
References

Affected packages

Git / github.com/knex/knex

Affected ranges

Type
GIT
Repo
https://github.com/knex/knex
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "3.3.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Affected versions

Other
0,14,2
0.*
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.10.0
0.10.0-rc1
0.11.0
0.11.1
0.11.10
0.11.2
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.8
0.12.9
0.13.0
0.14.1
0.14.3
0.14.4
0.14.5
0.14.6
0.15.0
0.15.2
0.16.0
0.16.1
0.16.3
0.17.0
0.17.2
0.18.4
0.19.0
0.19.3
0.19.5
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.20.0
0.20.1
0.20.11
0.20.2
0.20.4
0.20.6
0.21.0
0.21.1
0.21.10
0.21.13
0.21.14
0.21.15
0.21.2
0.21.3
0.21.5
0.21.9
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.5.0
0.5.1
0.5.2
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.8.5
0.8.6
0.9.0
0.95.0
0.95.10
0.95.11
0.95.12
0.95.14
0.95.2
0.95.3
0.95.5
0.95.8
1.*
1.0.0
1.0.1
1.0.3
1.0.4
1.0.5
1.0.7
2.*
2.0.0
2.1.0
2.2.0
2.3.0
2.4.0
2.4.1
2.4.2
2.5.0
2.5.1
3.*
3.0.0
3.0.1
3.1.0
3.2.0
3.2.1
3.2.10
3.2.3
3.2.6
3.2.7
3.2.8
3.2.9
3.3.0
v0.*
v0.15.1
v0.16.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142190.json"