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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-306, CWE-346
- **Aliases:** GHSA-rqfv-2mw9-78g2, PYSEC-2026-4109
- **Published:** 2026-09-11T20:35:42.000Z
- **Modified:** 2026-10-01T17:55:38.641Z

## Who should check

- Projects that depend on PyPI package mysql-mcp-server (\< 0.4.2)
- Anyone running designcomputer mysql\_mcp\_server \< 0.4.2

## 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

- PyPI `mysql-mcp-server`: affected \< 0.4.2; fixed 0.4.2 (osv)
- designcomputer mysql\_mcp\_server: \< 0.4.2 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/designcomputer/mysql_mcp_server/security/advisories/GHSA-rqfv-2mw9-78g2>
- vendor: <https://github.com/advisories/GHSA-rqfv-2mw9-78g2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-59971>
- patch: <https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82>
- other: <https://github.com/designcomputer/mysql_mcp_server/issues/92>
- other: <https://github.com/designcomputer/mysql_mcp_server/releases/tag/v0.4.2>
- other: <https://github.com/designcomputer/mysql_mcp_server>
- other: <https://pypi.org/project/mysql-mcp-server>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-59971>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rqfv-2mw9-78g2> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4109> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-59971> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-59971>
