CVE-2026-142191
Knex through 3.3.0 contains an sql injection vulnerability in the …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/knex/knex/blob/3.3.0/lib/dialects/mssql/index.js#L132-L138
- github.com/knex/knex/blob/3.3.0/lib/dialects/mssql/schema/mssql-compiler.js#L10-L22
- www.vulncheck.com/advisories/knex-through-3.3.0-sql-injection-via-mssql-droptableifexists-
- nvd.nist.gov/vuln/detail/CVE-2026-142191
- cve.org/CVERecord?id=CVE-2026-142191
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.