freenode

← CVE tracker

CVE-2026-142191

Knex through 3.3.0 SQL Injection via MSSQL dropTableIfExists, dropViewIfExists and createTableIfNotExists

Severity
high CVSS 7.7 (v4.0)
Affects
knex
Weakness
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2 December 2026 by VulnCheck
Knex through 3.3.0 contains an sql injection vulnerability in the MSSQL dialect that allows attackers to inject T-SQL via table or view names. Attackers can supply names containing a single quote to close the object_id() literal in dropTableIfExists, dropViewIfExists, or createTableIfNotExists and execute arbitrary T-SQL with the database connection's privileges.

Our coverage

We have not written about this one. Know why it matters? Send a tip.