{"answers":{"affected":"3 open source packages ship an affected version, including mysql-mcp-server.","exploited":"There is no known exploitation of CVE-2026-59971 in the wild and no public exploit code.","fix":"Upgrade mysql-mcp-server to 0.4.2 or later.","what":"CVE-2026-59971 is a critical missing authorization vulnerability in designcomputer mysql_mcp_server, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-59971 and fix it if it is affected.\n\nWhat it is: CVE-2026-59971 is a critical missing authorization vulnerability in designcomputer mysql_mcp_server, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-59971 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mysql-mcp-server (PyPI): affected all versions; fixed in 0.4.2\n- mysql-mcp-server (PyPI): affected all versions; fixed in 0.4.2\n- mysql-mcp-server (PyPI): affected all versions; fixed in 0.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-59971/ (Markdown: https://insights.sbomify.com/CVE-2026-59971/index.md)","id":"CVE-2026-59971","markdown":"https://insights.sbomify.com/CVE-2026-59971/index.md","name":"CVE-2026-59971","record":{"aliases":["GHSA-rqfv-2mw9-78g2","PYSEC-2026-4109"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"MySQL MCP Server","requires_auth":"none","summary":"Unauthenticated attackers can execute SQL queries via SSE transport due to missing origin validation and authentication, leading to database disclosure or modification.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"MySQL MCP Server: Missing Origin/Host Validation in SSE Transport Enables Unauthenticated SQL Execution (DNS Rebinding / Direct Exposure)","id":"CVE-2026-59971","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"mcp-from-openapi: Bypass of OpenAPI external $ref SSRF fix in latest FrontMCP and mcp-from-openapi","id":"CVE-2026-59973"},"packages":[{"ecosystem":"PyPI","fixed":["0.4.2"],"introduced":["0"],"last_affected":[],"package":"mysql-mcp-server","purl":null,"source":"GHSA-rqfv-2mw9-78g2"},{"ecosystem":"PyPI","fixed":["0.4.2"],"introduced":["0"],"last_affected":[],"package":"mysql-mcp-server","purl":"pkg:pypi/mysql-mcp-server","source":"GHSA-rqfv-2mw9-78g2"},{"ecosystem":"PyPI","fixed":["0.4.2"],"introduced":["0"],"last_affected":[],"package":"mysql-mcp-server","purl":"pkg:pypi/mysql-mcp-server","source":"PYSEC-2026-4109"}],"prev":{"headline":"Tandoor Recipes: Blind SSRF via AI provider URL (api_base)","id":"CVE-2026-59970"},"products":["mysql_mcp_server"],"published":"2026-09-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-15","vendors":["designcomputer"]},"summary":"Unauthenticated attackers can execute SQL queries via SSE transport due to missing origin validation and authentication, leading to database disclosure or modification.","url":"https://insights.sbomify.com/CVE-2026-59971/"}