CVE-2026-59971designcomputer mysql_mcp_server
Unauthenticated database access in MySQL MCP Server
Critical 10.0 No auth needed
Follow: this CVE · designcomputer · designcomputer mysql_mcp_server We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 10.0
- EPSS
- —
- Auth required
- No
- Published
- Sep 15, 2026
- Updated
- Sep 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
MySQL MCP Server prior to 0.4.2 exposes unauthenticated endpoints when using SSE transport, allowing remote attackers to execute arbitrary SQL queries against the configured database. An attacker can access directly over the network or use DNS rebinding to compromise data integrity and confidentiality; if the MySQL account has FILE privileges, reading or writing server files and potentially achieving code execution is also possible.
Show the original NVD text
MySQL MCP Server is a Model Context Protocol server that enables secure interaction with MySQL databases. Prior to 0.4.2, setting MCP_TRANSPORT=sse causes src/mysql_mcp_server/server.py to construct SseServerTransport without security_settings or enable_dns_rebinding_protection, while the Starlette routes /, /sse, and /messages/ have no authentication and the service binds to 0.0.0.0 by default. A network attacker can directly reach execute_sql, or can use DNS rebinding to make a victim's browser relay same-origin requests to a locally bound service, and supply a query that reaches cursor.execute(query). This allows unauthenticated disclosure and modification of the configured database; when the MySQL account has FILE privileges, the same access can read or write server files and may enable code execution. The default stdio transport is not affected. This issue is fixed in 0.4.2.
What to do
Patch available · fixed versions: 0.4.2
Update mysql-mcp-server to version 0.4.2 or later. If using SSE transport, verify that security_settings and enable_dns_rebinding_protection are enabled in the configuration.
- Apply the vendor's security update for mysql_mcp_server.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mysql-mcp-server |
< 0.4.2 |
0.4.2 |
pip install "mysql-mcp-server>=0.4.2" |
| PyPI | mysql-mcp-server |
< 0.4.2 |
0.4.2 |
pip install "mysql-mcp-server>=0.4.2" |
Per OSV / GitHub Advisories (GHSA-rqfv-2mw9-78g2, PYSEC-2026-4109). Check the version in your lockfile before upgrading.
Affected products
- designcomputer · mysql_mcp_server
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.