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

State
Published
Severity
8.8 High
Published
Nov 18, 2026
Updated
Nov 23, 2026
Reserved
Jul 15, 2026

Read the record on cve.org

Description

mssql-mcp-core is the shared library that powers MSSQL MCP servers. Prior to core and server 0.6.0 and reader and writer 0.5.0, multiple database tools interpolate caller-controlled identifiers and predicates into T-SQL batches passed to Request.query() while parameterizing only data values. update_data, delete_data, insert_data, execute_transaction, create_table, create_index, and drop_table accept unsafe tableName, column, index, schema, or free-form whereClause input, while reader-tier list_databases interpolates stateFilter without runtime allowlist enforcement. Row-count and preview queries execute before confirmUpdate or confirmDelete, allowing malicious arguments to bypass confirmation and maxRows controls and execute stacked DDL or DML, read or destroy data, and potentially run operating-system commands when the SQL login is privileged and xp_cmdshell is enabled. This issue is fixed in core and server version 0.6.0 and reader and writer version 0.5.0.

ProductVersions
mssql-mcp-core ConnorBritain< 0.6.0 Affected
mssql-mcp-reader ConnorBritain< 0.5.0 Affected
mssql-mcp-writer ConnorBritain< 0.5.0 Affected
mssql-mcp-server ConnorBritain< 0.6.0 Affected

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.