Knex versions through 3.3.0 have an SQL injection vulnerability in the MSSQL dialect. This flaw allows attackers to inject arbitrary T-SQL commands by manipulating table or view names containing single quotes. The injection occurs in functions such as dropTableIfExists, dropViewIfExists, and createTableIfNotExists, potentially enabling execution of commands with the database connection's privileges.