Case · DiggingBeagle record

MSSQL MCP SQL injection bypassed preview confirmation through raw table and filter inputs

Unparameterized SQL identifiers and WHERE clauses enabled stacked database statements before write confirmation, with OS execution conditional on SQL credentials and xp_cmdshell.

Published by DiggingBeagle:

Public disclosure: Jul 8, 2026

Scope

Affected versions of @connorbritain/mssql-mcp-core, -reader, -server and -writer with tool invocation authority and database credentials.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

Detailed advisory documents pre-confirmation SQL execution and fixed package versions; database privilege scope governs outcomes. Impact band is unassigned because the cited material does not establish a calibrated real-world loss or affected-population denominator.

Assessed Nov 20, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    A malicious prompt or MCP client supplies SQL syntax inside tableName, whereClause or stateFilter.

  2. 02

    Query execution occurs during preflight or read-only operations before a confirmation can block the effect.

Timeline

  1. Jul 8, 2026
    Event type unspecified

    Underlying evidence published or disclosed

  2. Jul 8, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-2026-NOV20-MSSQLGHSA-2m9m-6cr5-9x25 identifies SQL injection through raw tableName, whereClause and reader stateFilter input; it is fixed in core/server 0.6.0 and reader/writer 0.5.0.supported

Basis: reported finding

Link to claim
CLM-2026-NOV20-MSSQL-ENRICHThe MSSQL MCP advisory shows that update/delete row-count and preview queries executed interpolated SQL before the confirmUpdate or confirmDelete gate; even the read-only list_databases stateFilter could pass raw SQL through the reader tier.supported

Basis: reported finding

Link to claim

Implications

The security invariant is simpler than a natural-language tool description: validate every query or mutation independently of model intent and enforce least-privilege permissions at the database itself.

Controls and mitigations

  • Upgrade core/server to 0.6.0 and reader/writer to 0.5.0; enforce least-privileged database roles.

Unknowns and contradictions

  • No confirmed production database compromise or credential theft is in the cited disclosure.
  • Host code execution requires elevated SQL permissions and xp_cmdshell to be enabled.

Sources and citation

Material revision history

  1. Nov 20, 2026 · Published version · first publication · revision 269