All vulnerabilities

npm

CVE-2026-63129

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

Severity
High 8.8
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.5.0, 0.6.0
Exploit chance
0.6% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
SQL injection (CWE-89)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-2m9m-6cr5-9x25
Sources
OSV.dev and GitHub

Description

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…

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
@connorbritain/mssql-mcp-corenpm · osv:npm:@connorbritain/mssql-mcp-core
  • Every version before 0.6.0
@connorbritain/mssql-mcp-readernpm · osv:npm:@connorbritain/mssql-mcp-reader
  • Every version before 0.5.0
@connorbritain/mssql-mcp-servernpm · osv:npm:@connorbritain/mssql-mcp-server
  • Every version before 0.6.0
@connorbritain/mssql-mcp-writernpm · osv:npm:@connorbritain/mssql-mcp-writer
  • Every version before 0.5.0

About @connorbritain/mssql-mcp-core

Weekly downloads (npm)
2,516npm, 24 Nov 2026

This is the only vulnerability in @connorbritain/mssql-mcp-core in our list.

About @connorbritain/mssql-mcp-reader

Weekly downloads (npm)
1,434npm, 24 Nov 2026

This is the only vulnerability in @connorbritain/mssql-mcp-reader in our list.

About @connorbritain/mssql-mcp-server

Weekly downloads (npm)
866npm, 24 Nov 2026

This is the only vulnerability in @connorbritain/mssql-mcp-server in our list.

References