News · GitHub Security Advisories / npm · 2 min read
Event date: · Published:
High-severity SQL injection disclosed in mssql-mcp-core MCP servers
GitHub Security Advisories disclosed a CVSS 8.8 SQL injection flaw in the mssql-mcp-core family of MCP servers for SQL Server, with patched versions now available.
GitHub Security Advisories disclosed a high-severity SQL injection vulnerability in the mssql-mcp-core family of MCP servers for Microsoft SQL Server on November 19, 2026, tracked as GHSA-2m9m-6cr5-9x25.
Key details
- The flaw affects the MCP server family for Microsoft SQL Server:
@connorbritain/mssql-mcp-core,mssql-mcp-reader,mssql-mcp-writer, andmssql-mcp-server. - It carries a CVSS 3.1 score of 8.8 (High), with vector
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. - The root cause is that tools such as
update_data,delete_data,insert_data, andexecute_transactioninterpolate caller-supplied table names and WHERE clauses directly into T-SQL instead of parameterizing them. - An attacker with access to tool arguments can bypass row-limit and confirmation safety controls, and read, modify, or delete arbitrary data.
- If
xp_cmdshellis enabled on the server, the flaw can potentially escalate to OS command execution. - Patched versions are
mssql-mcp-coreandmssql-mcp-server0.6.0, andmssql-mcp-readerandmssql-mcp-writer0.5.0; the fix adds identifier allowlisting and bracket-quoting, replacing free-form WHERE clauses with structured, parameterized filters.
What it means for people who build with AI
The disclosure is a reminder that MCP servers connecting AI agents to databases carry the same injection risks as traditional application code, with an added twist: a compromised or malicious tool call can escalate from a data breach to operating-system command execution if xp_cmdshell is active. Any agentic workflow that grants an MCP server write access to a SQL Server database should treat this advisory as a direct risk to triage, not a theoretical one.
Patch and next steps
Teams running the affected packages should upgrade mssql-mcp-core and mssql-mcp-server to version 0.6.0, and mssql-mcp-reader and mssql-mcp-writer to version 0.5.0, where structured, parameterized filters replace the vulnerable free-form WHERE clause handling.
Sources
- GHSA-2m9m-6cr5-9x25: mssql-mcp-core SQL injection (GitHub Security Advisories, November 19, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.