Vulnerabilities in pkg:npm/@connorbritain/mssql-mcp-writer
PACKAGECVE-2026-63129 is a HIGH (CVSS 8.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting mssql-mcp-core libraries in the npm ecosystem. The issue involves sql injection in mssql-mcp write tools via unparameterized table names and where clauses. Remediation is available by upgrading affected packages to version 0.6.0, 0.5.0.
pkg:npm/@connorbritain/mssql-mcp-writer
Vulnerability advisories affecting package pkg:npm/@connorbritain/mssql-mcp-writer. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2m9m-6cr5-9x25 | CVE-2026-63129 | HIGH | mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses |
CVE-2026-63129 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-63129
To remediate this vulnerability, upgrade all affected mssql-mcp-core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @connorbritain/mssql-mcp-core@0.6.0
npm install @connorbritain/mssql-mcp-reader@0.5.0
npm install @connorbritain/mssql-mcp-writer@0.5.0
npm install @connorbritain/mssql-mcp-server@0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @connorbritain/mssql-mcp-core
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-63129, inspect your project dependencies using npm:
npm ls @connorbritain/mssql-mcp-core
Analyze the terminal output to locate any version of mssql-mcp-core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: The npm ls @connorbritain/mssql-mcp-core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In mssql-mcp-core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-63129 Affected mssql-mcp-core Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@connorbritain/mssql-mcp-core
|
npm |
< 0.6.0
|
0.6.0
|
|
@connorbritain/mssql-mcp-reader
|
npm |
< 0.5.0
|
0.5.0
|
|
@connorbritain/mssql-mcp-writer
|
npm |
< 0.5.0
|
0.5.0
|
|
@connorbritain/mssql-mcp-server
|
npm |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is CVE-2026-63129?
Which mssql-mcp-core versions are affected?
What version fixes CVE-2026-63129?
Is @connorbritain/mssql-mcp-core affected?
Is @connorbritain/mssql-mcp-reader affected?
What is the CVSS score of CVE-2026-63129?
What CWE is associated with CVE-2026-63129?
How can I check npm dependencies for CVE-2026-63129?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2m9m-6cr5-9x25",
"modified" : "2026-11-19T00:46:38Z",
"published" : "2026-11-19T00:46:38Z",
"aliases" : [ "CVE-2026-63129" ],
"summary" : "mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses",
"details" : "Several tools in `mssql-mcp-core` built T-SQL by string-interpolating caller-supplied identifiers and predicates directly into the statement passed to the node-mssql `Request.query()` batch API. Only data values were parameterized.\n\nAffected tools and inputs:\n- `update_data`, `delete_data`: `tableName` and the free-form `whereClause` were interpolated raw.\n- `insert_data`: `tableName` and column names (object keys) were interpolated raw.\n- `execute_transaction`: the same raw `tableName`/`whereClause` interpolation per operation.\n- `create_table`, `create_index`, `drop_table`: table/column/index/schema identifiers were interpolated with no or insufficient validation.\n- `list_databases` (reader tier): the `stateFilter` argument was interpolated raw into the query, with only a non-enforced inputSchema enum guarding it.\n\nThe only check on `whereClause` was that it was non-empty. Because the row-count and preview queries run before the `confirmUpdate`/`confirmDelete` step, a malicious `whereClause` or `tableName` executed on the first call, bypassing the preview/confirmation and `maxRows` safety controls. `Request.query()` submits a multi-statement T-SQL batch, so a crafted input enabled stacked statements (arbitrary DDL/DML), sub-selects, and (with a privileged login and `xp_cmdshell` enabled) OS command execution. Because `list_databases` is a read-only tool, the `stateFilter` sink makes the reader package injectable as well.\n\n## Impact\n\nAn actor who can supply tool arguments (a malicious or compromised MCP client, or an LLM agent steered via indirect prompt injection) could read, modify, or drop arbitrary data, bypass the `read_data` allow/deny validation and the preview/confirmation/`maxRows` safeguards, and conditionally achieve OS command execution.\n\n## Patches\n\nFixed in `@connorbritain/mssql-mcp-core` 0.6.0:\n- All identifiers are validated against a strict allowlist and bracket-quoted via a shared helper.\n- The free-form `whereClause` string parameter is removed (breaking change) and replaced with structured, parameterized filters (`{ column, operator, value }`) using an operator allowlist. Values are always bound, never interpolated.\n- `list_databases` validates `stateFilter` against a fixed allowlist before use.\n\nUpgrade the consumer packages: `mssql-mcp-reader` 0.5.0, `mssql-mcp-writer` 0.5.0, `mssql-mcp-server` 0.6.0 (all depend on core `^0.6.0`).\n\n## Workarounds\n\nUpgrading is the only complete fix; the `list_databases` (`stateFilter`) sink is reachable even under `READONLY=true` and in the reader package. As defense in depth, run the server under a least-privilege SQL login with `xp_cmdshell` disabled, and restrict which MCP clients can invoke the tools.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@connorbritain/mssql-mcp-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.0"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@connorbritain/mssql-mcp-reader"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.2"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@connorbritain/mssql-mcp-writer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.2"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@connorbritain/mssql-mcp-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ConnorBritain/mssql-mcp-core/security/advisories/GHSA-2m9m-6cr5-9x25"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63129"
}, {
"type" : "WEB",
"url" : "https://github.com/ConnorBritain/mssql-mcp-core/pull/1"
}, {
"type" : "WEB",
"url" : "https://github.com/ConnorBritain/mssql-mcp-core/commit/227e2efc4e3311c477b7ae509c3ae15437a4f815"
}, {
"type" : "WEB",
"url" : "https://github.com/ConnorBritain/mssql-mcp-core/commit/a9727f83768598e4fdbddfbc717ccfebb84ae7af"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ConnorBritain/mssql-mcp-core"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-19T00:46:38Z",
"nvd_published_at" : "2026-11-18T20:19:10Z"
}
}