Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-59971

CRITICAL 10.0EPSS 28%

MySQL MCP Server: Missing Origin/Host Validation in SSE Transport Enables Unauthenticated SQL Execution (DNS Rebinding / Direct Exposure)

Also known as GHSA-rqfv-2mw9-78g2, PYSEC-2026-4109

Mitigation

  • Upgrade mysql-mcp-server to 0.4.2 or later.

Who should check

  • Projects that depend on PyPI package mysql-mcp-server (< 0.4.2)
  • Anyone running designcomputer mysql_mcp_server < 0.4.2

Vulnerability facts

Affected
mysql-mcp-server < 0.4.2
Fixed in
0.4.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.42% chance of exploitation in 30 days (percentile 28, 2026-11-26)
CWE
CWE-306, CWE-346
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI mysql-mcp-server< 0.4.20.4.2osv
designcomputer mysql_mcp_server< 0.4.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-59971. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59971.md
Affected: mysql-mcp-server < 0.4.2
Fixed in: 0.4.2

Steps:
1. Search this machine and project for mysql-mcp-server (PyPI), designcomputer mysql_mcp_server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-59971 being exploited?

There is no confirmed exploitation: CVE-2026-59971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-59971?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-59971?

mysql-mcp-server < 0.4.2.

Is there a fix for CVE-2026-59971?

Yes. Fixed in 0.4.2. Upgrade mysql-mcp-server to 0.4.2 or later.

How do I check if I'm affected by CVE-2026-59971?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors