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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-09-11T20:35:42.000Z
- Modified: 2026-10-01T17:55:38.641Z
- Also known as: GHSA-rqfv-2mw9-78g2, PYSEC-2026-4109
- Weaknesses: CWE-306, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- designcomputer mysql_mcp_server: < 0.4.2
- mysql-mcp-server (PyPI): before 0.4.2

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-59971](https://www.cve.org/CVERecord?id=CVE-2026-59971), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-rqfv-2mw9-78g2](https://github.com/advisories/GHSA-rqfv-2mw9-78g2), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-59971](https://nvd.nist.gov/vuln/detail/CVE-2026-59971), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4109](https://osv.dev/vulnerability/PYSEC-2026-4109), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-59971 · Whole record: https://cve.day/CVE-2026-59971.json · Rebuilt by cve.day 2026-11-25T22:59:38.545Z
