CVE-2026-59971: MySQL MCP Server: Missing Origin/Host Validation in SSE Transport Enables Unauthenticated SQL Execution (DNS Rebinding / Direct Exposure)
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by GitHub_M, published 2026-09-15).
Weakness: CWE-306: Missing Authentication for Critical Function; CWE-346: Origin Validation Error
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CISA assessment (SSVC): CISA has no evidence of exploitation. Automatable: no. Technical impact: total.
Public exploit evidence (Exploit Observer)
Also known as: EUVD-2026-78580, GHSA-rqfv-2mw9-78g2
VEDAS cluster: VEDAS:DEPTHSERPENT
Exploit Observer links 5 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (5)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/nuclei/2026/CVE-2026-59971.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/nuclei/2026/CVE-2026-59971.yaml
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2026/CVE-2026-59971.rules
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2026/CVE-2026-59971.rules
- Code repository: https://raw.githubusercontent.com/ARPSyndicate/vedas-signatures/main/suricata/2026/CVE-2026-59971.rules
Vulnerability databases and vendor advisories (5)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2026-78580
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-rqfv-2mw9-78g2
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-59971
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/CVE-2026-59971
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-rqfv-2mw9-78g2
3 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.004
low predicted chance of attack - VEDAS
- 0.988
strong exploit evidence - On CISA KEV
- Not listed
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| designcomputer mysql_mcp_server | version < 0.4.2 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: pypi mysql-mcp-server.
How to fix it
No fixed version or vendor advisory is listed in the CVE record yet. Watch the vendor’s security page.
How to detect it
Nuclei template (active check)
MySQL MCP Server - Unauthenticated SSE Transport Exposure
MySQL MCP Server before 0.4.2 run with MCP_TRANSPORT=sse builds the SSE transport without security_settings or DNS-rebinding protection and exposes the Starlette routes /, /sse and /messages/ with no authentication, binding to 0.0.0.0 by default. Any network-reachable attacker can list and call tools including execute_sql. The root health route only exists in the unauthenticated SSE deployment and returns the fixed banner “MySQL MCP Server is running”, which the template uses to confirm the exposed, unauthenticated server without touching the database.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET /); it decides using status, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2026-59971.yamlShow the template (39 lines)
id: CVE-2026-59971
info:
name: "MySQL MCP Server - Unauthenticated SSE Transport Exposure"
author: vedas-arpsyndicate
severity: critical
description: |
MySQL MCP Server before 0.4.2 run with MCP_TRANSPORT=sse builds the SSE transport
without security_settings or DNS-rebinding protection and exposes the Starlette
routes /, /sse and /messages/ with no authentication, binding to 0.0.0.0 by default.
Any network-reachable attacker can list and call tools including execute_sql. The
root health route only exists in the unauthenticated SSE deployment and returns the
fixed banner "MySQL MCP Server is running", which the template uses to confirm the
exposed, unauthenticated server without touching the database.
reference:
- https://www.exploit.observer/?keyword=CVE-2026-59971&match=exact
- https://subdomain.center/?engine=ammonites&keyword=mysql-mcp-server&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10.0
cve-id: CVE-2026-59971
cwe-id: CWE-306
metadata:
verified: false
max-request: 1
tags: cve,cve2026,mysql-mcp-server,mcp,unauth
http:
- method: GET
path:
- "{{BaseURL}}/"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "MySQL MCP Server is running"
- type: status
status:
- 200
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2026-59971 MySQL MCP Server - Unauthenticated SSE Transport Exposure. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2026-59971 MySQL MCP Server - Unauthenticated SSE Transport Exposure"; flow:established,to_client; file.data; content:"MySQL MCP Server is running"; fast_pattern; nocase; classtype:web-application-attack; reference:cve,CVE-2026-59971; reference:url,https://www.exploit.observer/?keyword=CVE-2026-59971&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=mysql-mcp-server&match=exact; sid:1088000; rev:1;)
CVE-2026-59971.rules on GitHub
References
Other references
- https://github.com/designcomputer/mysql_mcp_server/security/advisories/GHSA-rqfv-2mw9-78g2 (x_refsource_CONFIRM)
- https://github.com/designcomputer/mysql_mcp_server/issues/92 (x_refsource_MISC)
- https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82 (x_refsource_MISC)
- https://github.com/designcomputer/mysql_mcp_server/releases/tag/v0.4.2 (x_refsource_MISC)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.