Advisories for Npm/@Connorbritain/Mssql-Mcp-Server package

2026

mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses

Several tools in mssql-mcp-core built T-SQL by string-interpolating caller-supplied identifiers and predicates directly into the statement passed to the node-mssql Request.query() batch API. Only data values were parameterized. Affected tools and inputs: update_data, delete_data: tableName and the free-form whereClause were interpolated raw. insert_data: tableName and column names (object keys) were interpolated raw. execute_transaction: the same raw tableName/whereClause interpolation per operation. create_table, create_index, drop_table: table/column/index/schema identifiers were interpolated with no or …