mssql-mcp-core SQL injection in write tools and list_databases (CVE-2026-63129)
Summary
Per the vendor advisory, several tools in @connorbritain/mssql-mcp-core built T-SQL by interpolating caller-supplied table names, WHERE clauses and, in list_databases, stateFilter into the query. The core, reader, writer and server packages are affected, and fixes are in core 0.6.0, reader and writer 0.5.0, and server 0.6.0. Core 0.6.0 removes the free-form whereClause parameter, which is a breaking change. The advisory page shows a Jul 8, 2026 publication date, while the advisory data lists Nov 19, 2026.
Severity
Timeline
The repository advisory page shows GHSA-2m9m-6cr5-9x25 as published.
The advisory data lists GHSA-2m9m-6cr5-9x25 with this publication timestamp. (per the vendor advisory)
How it happened
Per the vendor advisory, several tools built T-SQL by string interpolation of caller-supplied identifiers and predicates. Row-count and preview queries run before the confirmation step, so a crafted whereClause or tableName executed on the first call, bypassing preview, confirmation and maxRows controls. A crafted input enabled stacked statements, and OS command execution is possible only with a privileged login and xp_cmdshell enabled. The vendor commit notes that xp_cmdshell is off by default in modern SQL Server. list_databases interpolated stateFilter raw, which makes the reader package injectable. An actor who can supply tool arguments could exploit this, such as a malicious or compromised MCP client or a prompt-injected LLM agent.
How to check your app
- @connorbritain/mssql-mcp-core <= 0.5.0: Check the installed version and upgrade to 0.6.0.
- @connorbritain/mssql-mcp-reader and mssql-mcp-writer <= 0.4.2: Check the installed version and upgrade to 0.5.0.
- @connorbritain/mssql-mcp-server <= 0.5.2: Check the installed version and upgrade to 0.6.0.
- upgrading core from 0.5.0 or earlier to 0.6.0: The 0.6.0 release removed the free-form whereClause parameter. Replace any use of it with the structured filters.
Sources
Corrections and updates
Cite this entry
- Title
- mssql-mcp-core SQL injection in write tools and list_databases (CVE-2026-63129)
- Added
- Nov 20, 2026
- URL
- https://vibeincidents.com/incidents/mssql-mcp-core-cve-2026-63129/
- Suggested citation
VibeIncidents. "mssql-mcp-core SQL injection in write tools and list_databases (CVE-2026-63129)." Nov 20, 2026. https://vibeincidents.com/incidents/mssql-mcp-core-cve-2026-63129/