Skip to main content

mssql-mcp-core EUVDEUVD-2026-129174

| CVE-2026-63129 HIGH
SQL Injection (CWE-89)
2026-11-18 security-advisories@github.com GHSA-2m9m-6cr5-9x25
8.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain ability to supply MCP tool arguments
  2. Delivery
    Craft malicious tableName/whereClause/stateFilter
  3. Exploit
    Interpolated into unparameterized T-SQL batch
  4. Execution
    Stacked DDL/DML executes before confirmation
  5. Impact
    Read, alter, or destroy data (optionally xp_cmdshell OS command)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control arguments passed to the affected tools - update_data, delete_data, insert_data, execute_transaction, create_table, create_index, drop_table (write/DDL tiers) via raw tableName, column, index, schema, or free-form whereClause, or the reader-tier list_databases via stateFilter. The attacker must therefore be able to invoke MCP tools (a malicious/compromised MCP client or an LLM agent influenced by indirect prompt injection), which corresponds to the PR:L in the vector. LIMITING FACTORS: injection runs with the privileges of the configured SQL login, so least-privilege scoping sharply reduces blast radius; OS command execution is conditional on a privileged login AND xp_cmdshell being enabled (off by default in modern SQL Server). Notably, the stateFilter sink in list_databases is reachable even under READONLY=true and within the reader package, so a read-only deployment is NOT a mitigation. Affected: core <= 0.5.0, reader/writer <= 0.4.2, server <= 0.5.2.

Impact

Signals align on a genuine but not emergency-grade priority. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, 8.8) describes a network-reachable, low-complexity flaw requiring low privileges - consistent with the advisory's threat model where the attacker is anyone able to supply tool arguments (a malicious or compromised MCP client, or an LLM agent steered via indirect prompt injection). The GHSA advisory and patch commits are confirmed by the GitHub Security Advisory source, and fixed versions are explicitly stated. No KEV listing is present in the input, so this is NOT confirmed actively exploited; no EPSS score was supplied, and no working exploit reference is included - only patch commits, the PR, and the advisory. The vuln.today decision label is 'this_week' (not act_now/emergency), matching a serious-but-not-yet-exploited posture. The one notable nuance: the reader-tier list_databases/stateFilter sink is injectable even under READONLY=true, so a read-only deployment that assumes it is safe is not - defenders should not treat the reader package as out of scope. Overall this is a real priority to patch promptly, driven by high technical impact and low attack complexity rather than by evidence of in-the-wild exploitation.

Exploit ScenarioDerived

An attacker who can influence the arguments sent to the MCP server's database tools - for example an LLM agent manipulated through indirect prompt injection, or a compromised MCP client - supplies a crafted tableName or free-form whereClause (or stateFilter to the reader's list_databases). Because row-count and preview queries run before confirmUpdate/confirmDelete, the malicious T-SQL executes on the first call via Request.query()'s multi-statement batch, bypassing the confirmation and maxRows safeguards to read, modify, or drop data; with a privileged SQL login and xp_cmdshell enabled it can reach OS command execution. No public working exploit is identified in the input, though the fixing commits and advisory describe the sink in detail.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

SQL injection in the mssql-mcp-core shared library (and its reader, writer, and server packages) prior to core/server 0.6.0 and reader/writer 0.5.0 allows an attacker who can supply MCP tool arguments - a malicious or compromised MCP client, or an LLM agent steered through indirect prompt injection - to inject stacked T-SQL through unparameterized table names, column/index/schema identifiers, and a free-form whereClause, as well as the reader-tier stateFilter. Because the row-count and preview queries execute before confirmUpdate/confirmDelete, payloads fire on the first call and bypass the confirmation and maxRows safeguards, letting the attacker read, modify, or drop arbitrary data, evade read_data allow/deny validation, and - when the configured SQL login is privileged and xp_cmdshell is enabled - run operating-system commands. The vulnerability requires the ability to invoke the affected tools (PR:L in the CVSS vector, i.e. authenticated access to the MCP interface); no public exploit code or CISA KEV entry was identified at time of analysis, and the assigned EPSS-style priority is this_week rather than emergency-grade. Note that the list_databases stateFilter sink is reachable even under READONLY=true and in the reader package, so a read-only deployment does not eliminate exposure.

RemediationAI

Upgrade to the vendor-released fixed versions: @connorbritain/mssql-mcp-core 0.6.0, @connorbritain/mssql-mcp-server 0.6.0, @connorbritain/mssql-mcp-reader 0.5.0 and @connorbritain/mssql-mcp-writer 0.5.0 (the consumer packages depend on core ^0.6.0), per advisory GHSA-2m9m-6cr5-9x25 at https://github.com/ConnorBritain/mssql-mcp-core/security/advisories/GHSA-2m9m-6cr5-9x25 and the fix commits 227e2efc4e3311c477b7ae509c3ae15437a4f815 and a9727f83768598e4fdbddfbc717ccfebb84ae7af (PR https://github.com/ConnorBritain/mssql-mcp-core/pull/1). Be aware that replacing the free-form whereClause string with structured parameterized filters ({column, operator, value}) is a breaking API change, so callers and MCP clients must be updated to the new filter format. The advisory states upgrading is the only complete fix - the list_databases stateFilter sink is reachable even under READONLY=true and in the reader package, so no configuration flag closes it. As defense in depth, the project's SECURITY.md hardening guidance recommends running the MCP server under a least-privilege SQL login scoped only to the databases, schemas and operations it needs (limiting blast radius but not preventing the injection itself), ensuring xp_cmdshell and other dangerous server features stay disabled (which removes the OS command execution path, though data read/modify/drop remains possible), using the reader package or READONLY=true where writes are not required (which does not cover the stateFilter sink), and treating tool arguments originating from an LLM agent as untrusted input while restricting which MCP clients may invoke the write tools.

Affected VersionsENISA

mssql-mcp-core < 0.6.0
mssql-mcp-writer < 0.5.0
mssql-mcp-server < 0.6.0
mssql-mcp-reader < 0.5.0

Affected Packages

npm @connorbritain/mssql-mcp-core fix: 0.6.0
npm @connorbritain/mssql-mcp-reader fix: 0.5.0
npm @connorbritain/mssql-mcp-server fix: 0.6.0
npm @connorbritain/mssql-mcp-writer fix: 0.5.0
euvd mssql_mcp_core fix: 0.6.0
euvd mssql_mcp_reader fix: 0.5.0
euvd mssql_mcp_server fix: 0.6.0
euvd mssql_mcp_writer fix: 0.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 8 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-89 SQL injection in a Node.js/TypeScript library that powers MSSQL Model Context Protocol servers, which wrap the node-mssql driver. T-SQL identifiers (table, column, index, schema names) cannot be passed as bound parameters, so the affected tools built statements by string interpolation directly into the batch handed to Request.query(); only data values were parameterized, and the sole check on the free-form whereClause was that it was non-empty. Because Request.query() submits a multi-statement batch, crafted input enabled stacked DDL/DML, sub-selects and - with a privileged login and xp_cmdshell enabled - OS command execution. The specific sinks are tableName and whereClause in update_data, delete_data and execute_transaction; tableName and column names (object keys) in insert_data; table/column/index/schema identifiers in create_table, create_index and drop_table; and stateFilter in the reader-tier list_databases, where a non-enforced inputSchema enum was the only guard. The fix introduces a security module: quoteName and quoteQualified validate identifiers against a strict allowlist ([A-Za-z0-9_@#$ ] plus space, 128-character sysname limit) and bracket-quote them with ]] doubling; assertSafeTypeSpec blocks statement-breaking sequences in free-form DDL type specs; and buildWhereClause replaces the raw whereClause string with structured, parameterized filter conditions ({column, operator, value}) governed by an operator allowlist, with values always bound. The read tools (ProfileTableTool, ReadDataTool, ListTableTool, DescribeTableTool) already bracket-escaped with ]] doubling and were not part of the injection path.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable tool interface, low-complexity string injection, needs ability to invoke tools (PR:L); full read/modify/destroy of database data gives C/I/A:H with no scope change at the base.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 21:03 EUVD
CVE Published
Nov 18, 2026 - 20:19 cve.org
HIGH 8.8

DescriptionCVE.org

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.

Technical POC Analysis

CWE-89, SQL injection through string interpolation into T-SQL batches.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CVE-2026-63129 is a high-severity SQL injection in the mssql-mcp-core library, enabling authenticated attackers who can invoke MCP tools to read, modify, or delete arbitrary database records, and potentially execute operating system commands if configured with a privileged SQL login and xp_cmdshell. The flaw bypasses existing data-access controls and confirmation safeguards, exposing the organization to data loss, manipulation, and unauthorized access. Leadership should treat this as a priority remediation item, particularly if MCP interfaces are accessible to internal agents or external clients.

Business Impact: High
Compensating Controls

Upgrade to core/server 0.6.0 or later and reader/writer 0.5.0 or later; until then, restrict MCP tool invocation to trusted clients, disable xp_cmdshell, enforce least-privilege SQL logins, and implement external input validation.

Threat Intelligence Overview

EPSS Score
0.6%
Top 53% exploitable
Prevalence
Low
niche community npm MCP server for SQL Server, limited production footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy