CVE-2026-63129
mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses
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.
Fixes and workarounds
Fix
@connorbritain/mssql-mcp-core (npm): GitHub reports patched versions 0.6.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-reader (npm): GitHub reports patched versions 0.5.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-writer (npm): GitHub reports patched versions 0.5.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-server (npm): GitHub reports patched versions 0.6.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-core (npm): OSV reports a fixed version 0.6.0. Check the advisory for supported release branches.
Source: OSV GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-reader (npm): OSV reports a fixed version 0.5.0. Check the advisory for supported release branches.
Source: OSV GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-writer (npm): OSV reports a fixed version 0.5.0. Check the advisory for supported release branches.
Source: OSV GHSA-2m9m-6cr5-9x25Fix
@connorbritain/mssql-mcp-server (npm): OSV reports a fixed version 0.6.0. Check the advisory for supported release branches.
Source: OSV GHSA-2m9m-6cr5-9x25Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| mssql-mcp-core ConnorBritain |
< 0.6.0 (affected) | CNA: GitHub_M |
| mssql-mcp-reader ConnorBritain |
< 0.5.0 (affected) | CNA: GitHub_M |
| mssql-mcp-writer ConnorBritain |
< 0.5.0 (affected) | CNA: GitHub_M |
| mssql-mcp-server ConnorBritain |
< 0.6.0 (affected) | CNA: GitHub_M |
@connorbritain/mssql-mcp-core@connorbritain/mssql-mcp-core
npm |
<= 0.5.0 (affected, GitHub advisory range) | GitHub GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-reader@connorbritain/mssql-mcp-reader
npm |
<= 0.4.2 (affected, GitHub advisory range) | GitHub GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-writer@connorbritain/mssql-mcp-writer
npm |
<= 0.4.2 (affected, GitHub advisory range) | GitHub GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-server@connorbritain/mssql-mcp-server
npm |
<= 0.5.2 (affected, GitHub advisory range) | GitHub GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-core@connorbritain/mssql-mcp-core
npm |
≥ 0; < 0.6.0 (affected, semver); OSV events: introduced 0; fixed 0.6.0Source events (semver)
Other versions: unaffected |
OSV GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-reader@connorbritain/mssql-mcp-reader
npm |
≥ 0; < 0.5.0 (affected, semver); OSV events: introduced 0; fixed 0.5.0Source events (semver)
Other versions: unaffected |
OSV GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-writer@connorbritain/mssql-mcp-writer
npm |
≥ 0; < 0.5.0 (affected, semver); OSV events: introduced 0; fixed 0.5.0Source events (semver)
Other versions: unaffected |
OSV GHSA-2m9m-6cr5-9x25 |
@connorbritain/mssql-mcp-server@connorbritain/mssql-mcp-server
npm |
≥ 0; < 0.6.0 (affected, semver); OSV events: introduced 0; fixed 0.6.0Source events (semver)
Other versions: unaffected |
OSV GHSA-2m9m-6cr5-9x25 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 8.8 high |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CNA: GitHub_M |
| 3.1 / 8.8 high |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/ConnorBritain/mssql-mcp-core/security/advisories/GHSA-2m9m-6cr5-9x25CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/ConnorBritain/mssql-mcp-core/pull/1CNA: GitHub_M · x_refsource_MISC
- https://github.com/ConnorBritain/mssql-mcp-core/commit/227e2efc4e3311c477b7ae509c3ae15437a4f815CNA: GitHub_M · x_refsource_MISC
- https://github.com/ConnorBritain/mssql-mcp-core/commit/a9727f83768598e4fdbddfbc717ccfebb84ae7afCNA: GitHub_M · x_refsource_MISC
- https://github.com/ConnorBritain/mssql-mcp-core/commit/227e2efc4e3311c477b7ae509c3ae15437a4f815[email protected]
- https://github.com/ConnorBritain/mssql-mcp-core/commit/a9727f83768598e4fdbddfbc717ccfebb84ae7af[email protected]
- https://github.com/ConnorBritain/mssql-mcp-core/pull/1[email protected]
- https://github.com/ConnorBritain/mssql-mcp-core/security/advisories/GHSA-2m9m-6cr5-9x25[email protected]
- https://github.com/ConnorBritain/mssql-mcp-core/security/advisories/GHSA-2m9m-6cr5-9x25GitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-2m9m-6cr5-9x25OSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-2m9m-6cr5-9x25OSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.