SQL injection in mssql-mcp write tools via table names
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
ConnorBritain mssql-mcp-core and mssql-mcp-server before 0.6.0, and mssql-mcp-reader and mssql-mcp-writer before 0.5.0, insert caller-supplied table names, columns, schemas and WHERE clauses directly into T-SQL batches, parameterizing only data values. This is an improper neutralization of special elements in SQL commands (CWE-89). An attacker with low privileges over the network can read or destroy data, run stacked DDL or DML, and bypass the confirmUpdate and confirmDelete checks, and can run operating-system commands when the SQL login is privileged and xp_cmdshell is enabled.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ConnorBritain | mssql-mcp-core | before 0.6.0 | 0.6.0 | Patch available | CNA |
| ConnorBritain | mssql-mcp-reader | before 0.5.0 | 0.5.0 | Patch available | CNA |
| ConnorBritain | mssql-mcp-writer | before 0.5.0 | 0.5.0 | Patch available | CNA |
| ConnorBritain | mssql-mcp-server | before 0.6.0 | 0.6.0 | Patch available | CNA |
| — | @connorbritain/mssql-mcp-core (npm) | before 0.6.0 | 0.6.0 | Patch available | GHSA-2m9m-6cr5-9x25 |
| — | @connorbritain/mssql-mcp-reader (npm) | before 0.5.0 | 0.5.0 | Patch available | GHSA-2m9m-6cr5-9x25 |
| — | @connorbritain/mssql-mcp-writer (npm) | before 0.5.0 | 0.5.0 | Patch available | GHSA-2m9m-6cr5-9x25 |
| — | @connorbritain/mssql-mcp-server (npm) | before 0.6.0 | 0.6.0 | Patch available | GHSA-2m9m-6cr5-9x25 |
- mssql-mcp-core VendorConnorBritain Affected before 0.6.0 Fixed in 0.6.0 Patch available CNA
- mssql-mcp-reader VendorConnorBritain Affected before 0.5.0 Fixed in 0.5.0 Patch available CNA
- mssql-mcp-writer VendorConnorBritain Affected before 0.5.0 Fixed in 0.5.0 Patch available CNA
- mssql-mcp-server VendorConnorBritain Affected before 0.6.0 Fixed in 0.6.0 Patch available CNA
- @connorbritain/mssql-mcp-core (npm) Vendor— Affected before 0.6.0 Fixed in 0.6.0 Patch available GHSA-2m9m-6cr5-9x25
- @connorbritain/mssql-mcp-reader (npm) Vendor— Affected before 0.5.0 Fixed in 0.5.0 Patch available GHSA-2m9m-6cr5-9x25
- @connorbritain/mssql-mcp-writer (npm) Vendor— Affected before 0.5.0 Fixed in 0.5.0 Patch available GHSA-2m9m-6cr5-9x25
- @connorbritain/mssql-mcp-server (npm) Vendor— Affected before 0.6.0 Fixed in 0.6.0 Patch available GHSA-2m9m-6cr5-9x25
Remediation
Upgrade mssql-mcp-core and mssql-mcp-server to 0.6.0, and mssql-mcp-reader and mssql-mcp-writer to 0.5.0. The npm packages @connorbritain/mssql-mcp-core and @connorbritain/mssql-mcp-server are fixed in 0.6.0, and @connorbritain/mssql-mcp-reader and @connorbritain/mssql-mcp-writer are fixed in 0.5.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA mssql-mcp-core (ConnorBritain) Fixed in 0.6.0
- Fix · CNA mssql-mcp-reader (ConnorBritain) Fixed in 0.5.0
- Fix · CNA mssql-mcp-writer (ConnorBritain) Fixed in 0.5.0
- Fix · CNA mssql-mcp-server (ConnorBritain) Fixed in 0.6.0
- Fix · GHSA-2m9m-6cr5-9x25 @connorbritain/mssql-mcp-core (npm) Fixed in 0.6.0 Advisory →
- Fix · GHSA-2m9m-6cr5-9x25 @connorbritain/mssql-mcp-reader (npm) Fixed in 0.5.0 Advisory →
- Fix · GHSA-2m9m-6cr5-9x25 @connorbritain/mssql-mcp-writer (npm) Fixed in 0.5.0 Advisory →
- Fix · GHSA-2m9m-6cr5-9x25 @connorbritain/mssql-mcp-server (npm) Fixed in 0.6.0 Advisory →
Timeline
- 2026-11-18 Threatist record created from CVE-2026-63129
- 2026-11-19 Alias added: GHSA-2m9m-6cr5-9x25
- 2026-11-19 Fix available: npm/@connorbritain/[email protected], npm/@connorbritain/[email protected], npm/@connorbritain/[email protected] +1 · GHSA-2m9m-6cr5-9x25
- 2026-11-19 CVSS score added · GHSA-2m9m-6cr5-9x25
- 2026-11-19 Weakness changed · GHSA-2m9m-6cr5-9x25
- 2026-11-19 6 new references · GHSA-2m9m-6cr5-9x25
- 2026-11-23 CISA SSVC decision points changed
References
Other 5
- https://github.com/ConnorBritain/mssql-mcp-core/security/advisories/GHSA-2m9m-6cr5-9x25
- https://github.com/ConnorBritain/mssql-mcp-core/pull/1
- https://github.com/ConnorBritain/mssql-mcp-core/commit/227e2efc4e3311c477b7ae509c3ae15437a4f815
- https://github.com/ConnorBritain/mssql-mcp-core/commit/a9727f83768598e4fdbddfbc717ccfebb84ae7af
- https://github.com/ConnorBritain/mssql-mcp-core
Sources
- CVE-2026-63129 · CVE Program
- CVE-2026-63129 · NVD
- FIRST EPSS
- GHSA-2m9m-6cr5-9x25 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences