Skip to main content

mysql-mcp-server EUVDEUVD-2026-35108

| CVE-2026-11529 LOW
SQL Injection (CWE-89)
2026-06-08 VulDB GHSA-mvq4-39wx-6h5g
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege MCP client access
  2. Delivery
    Craft malicious mysql://database/<SQLi_payload> URI
  3. Exploit
    Submit URI to read_resource endpoint
  4. Execution
    Bypass absent table-name validation
  5. Persist
    Execute injected SQL against backend MySQL
  6. Impact
    Exfiltrate or manipulate database contents

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

The attacker must hold low-privilege authenticated access to the mysql-mcp-server instance (CVSS PR:L confirmed). Exploitation requires that the target is running mysql-mcp-server version 0.2.2 or earlier. The injection point is specifically the table-name segment of mysql://database/<name> URIs processed by the read_resource function - the server must be reachable and the attacker must be able to issue MCP resource read requests. Exploitation is limited by: (1) the PR:L authentication requirement - purely anonymous network access is insufficient; (2) the relatively narrow deployment context of MCP servers, which are typically internal toolchain components rather than public-facing services; (3) the unchanged scope (S:U), meaning the SQL injection is bounded to the connected MySQL database and does not directly pivot to the underlying OS. The most realistic threat actor is a compromised or malicious AI agent, prompt-injected LLM, or developer with MCP client access.

Impact

The CVSS 3.1 base score of 6.3 reflects a network-reachable (AV:N), low-complexity (AC:L) attack requiring low privileges (PR:L) with no user interaction (UI:N) and unchanged scope (S:U), with partial confidentiality, integrity, and availability impact (C:L/I:L/A:L). The temporal modifiers - Exploit:Proof-of-Concept (E:P), Remediation:Official Fix (RL:O), Report Confidence:Confirmed (RC:C) - align with the known state: a public PoC exists and a vendor-confirmed patch is available. The PR:L requirement is a meaningful limiting factor: an attacker must hold some authenticated access to the MCP server (e.g., as an AI agent client or API consumer), preventing entirely unauthenticated exploitation. EPSS data was not provided; the absence from CISA KEV and the targeted MCP toolchain audience suggest real-world exploitation is currently low-volume and not opportunistic at scale. The primary risk is in AI-agent pipelines where the MCP server is exposed to untrusted or semi-trusted input - a credible threat model given LLM prompt-injection scenarios where crafted user input reaches tool arguments.

Exploit ScenarioDerived

An authenticated MCP client - such as an AI agent or developer tool with configured access to the mysql-mcp-server - sends a read_resource request with a crafted mysql://database/<payload> URI where the table name segment contains SQL metacharacters or subqueries. The unvalidated table name is interpolated directly into a MySQL query, allowing the attacker to extract data from unauthorized tables, modify records, or enumerate the database schema. A public proof-of-concept demonstrating this technique is available in GitHub issue #89.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 08, 2026

SQL injection in designcomputer mysql-mcp-server (versions up to 0.2.2) allows authenticated remote attackers to execute arbitrary SQL via a crafted mysql:// URI passed to the read_resource function in server.py. The vulnerability stems from insufficient validation of the table-name segment in mysql://database/<name> URIs before interpolation into MySQL queries. A publicly available proof-of-concept exploit exists (GitHub issue #89); the issue is not listed in CISA KEV, indicating no confirmed widespread active exploitation at time of analysis. An official fix was released as v0.3.0 (also backported to v0.2.3).

RemediationAI

Upgrade to mysql-mcp-server version 0.3.0 (or at minimum 0.2.3), available via pip: pip install --upgrade mysql-mcp-server. The fix is confirmed in commit 080bef9a96d625ce0dfbde573a08b93497871981 and tagged release v0.3.0 at https://github.com/designcomputer/mysql_mcp_server/releases/tag/v0.3.0. If immediate upgrade is not possible, restrict access to the MCP server to trusted, fully authenticated clients only, and avoid exposing the server to any path where untrusted input (such as LLM-generated or user-supplied strings) can reach the uri_str argument of read_resource. Deploying in SSE/HTTP mode (MCP_TRANSPORT=sse) with the default MCP_SSE_HOST=127.0.0.1 binding limits network exposure as a partial compensating control, but does not eliminate the injection flaw. The Docker hardening in v0.3.0 (non-root appuser, removed ENV secrets) should also be adopted if running containerized.

Affected VersionsENISA

mysql-mcp-server 0.2.2
mysql-mcp-server 0.2.0
mysql-mcp-server 0.2.1

Affected Packages

pypi mysql-mcp-server fix: 0.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

mysql-mcp-server is a Python implementation of the Model Context Protocol (MCP) that exposes a MySQL database to AI agents and LLM-based toolchains. The affected component is the read_resource handler in src/mysql_mcp_server/server.py, which processes resource URIs of the form mysql://database/<table_name>. Prior to the fix, the table_name segment extracted from uri_str was interpolated into SQL queries without strict allowlist validation, satisfying CWE-89 (Improper Neutralization of Special Elements in SQL Commands). The CPE cpe:2.3:a:designcomputer:mysql-mcp-server:*:*:*:*:*:*:*:* covers all versions up to and including 0.2.2. The fix introduced a validate_identifier() utility enforcing the strict regex ^[a-zA-Z0-9_$]+$ and backtick-quoting of identifiers, eliminating the injection surface.

Know when Mysql Mcp Server gets its next vulnerability

  • 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 (VulDB) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Jun 08, 2026 - 16:22 NVD
MEDIUM LOW
CVSS changed
Jun 08, 2026 - 16:22 NVD
6.3 (MEDIUM) 2.1 (LOW)
CVE Published
Jun 08, 2026 - 15:30 nvd
MEDIUM 6.3

DescriptionCVE.org

A vulnerability was determined in designcomputer mysql-mcp-server up to 0.2.2. The impacted element is the function read_resource of the file src/mysql_mcp_server/server.py of the component mysql URI Handler. This manipulation of the argument uri_str causes sql injection. Remote exploitation of the attack is possible. The exploit has been publicly disclosed and may be utilized. Upgrading to version 0.3.0 is sufficient to resolve this issue. Patch name: 080bef9a96d625ce0dfbde573a08b93497871981. Upgrading the affected component is advised.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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