Skip to main content

CVE-2026-63129 — mssql-mcp-core: SQL injection in...

HIGH

mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses

Published November 19, 2026Updated November 19, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.68%). Schedule for your next planned update.

Does your project use an affected @connorbritain/mssql-mcp-writer version?

Paste your package-lock.json to check it for CVE-2026-63129 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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.

Affected tools and inputs:

  • update_data, delete_data: tableName and the free-form whereClause were interpolated raw.
  • insert_data: tableName and column names (object keys) were interpolated raw.
  • execute_transaction: the same raw tableName/whereClause interpolation per operation.
  • create_table, create_index, drop_table: table/column/index/schema identifiers were interpolated with no or insufficient validation.
  • list_databases (reader tier): the stateFilter argument was interpolated raw into the query, with only a non-enforced inputSchema enum guarding it.

The 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.

Impact

An 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.

Patches

Fixed in @connorbritain/mssql-mcp-core 0.6.0:

  • All identifiers are validated against a strict allowlist and bracket-quoted via a shared helper.
  • 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.
  • list_databases validates stateFilter against a fixed allowlist before use.

Upgrade 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).

Workarounds

Upgrading 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.

Advisory Timeline

  • First published November 19, 2026 (7 days ago).
  • Last revised November 19, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @connorbritain/mssql-mcp-writer to 0.5.0 or later
npm install @connorbritain/mssql-mcp-writer@0.5.0
npm
Update @connorbritain/mssql-mcp-core to 0.6.0 or later
npm install @connorbritain/mssql-mcp-core@0.6.0
npm
Update @connorbritain/mssql-mcp-reader to 0.5.0 or later
npm install @connorbritain/mssql-mcp-reader@0.5.0
npm
Update @connorbritain/mssql-mcp-server to 0.6.0 or later
npm install @connorbritain/mssql-mcp-server@0.6.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: npm (4).

PackageFixed In
@connorbritain/mssql-mcp-writer npm · Affected: All versions0.5.0
@connorbritain/mssql-mcp-core npm · Affected: All versions0.6.0
@connorbritain/mssql-mcp-reader npm · Affected: All versions0.5.0
@connorbritain/mssql-mcp-server npm · Affected: All versions0.6.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-63129?
mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-63129?
CVE-2026-63129 affects @connorbritain/mssql-mcp-writer, @connorbritain/mssql-mcp-core and @connorbritain/mssql-mcp-reader (and 1 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-63129 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.68%
EPSS percentile: 47.6

This is a below-median EPSS score — only 47.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-2m9m-6cr5-9x25

Related CVEs

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json