CVE-2026-85788: AWS Labs MySQL MCP Server read-only enforcement bypass via SQL comments

CVE-2026-85788 · Severity: high · CVSS 5.5 · Published 2026-09-09

AWS Labs mysql-mcp-server is an open-source tool that allows applications to interact with MySQL databases through the Model Context Protocol. The tool includes a read-only enforcement feature designed to prevent unauthorized write operations. This vulnerability allows an attacker to bypass the read-only safeguard using SQL inline comments, potentially executing write or dangerous operations that should have been blocked.

Technologies: Amazon AWS. Vendors: Amazon.

Quick answers

Is CVE-2026-85788 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-85788 being exploited in the wild.
How severe is CVE-2026-85788?
High severity, with a CVSS score of 5.5, published 9 September 2026.
Which products and versions are affected?
AWS Labs mysql-mcp-server <=1.0.21.
Is there a fix for CVE-2026-85788?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-85788 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-85788?
Check whether you run Amazon AWS. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability exists in the read-only enforcement logic of AWS Labs mysql-mcp-server, where SQL inline comments can be used to bypass validation checks intended to prevent write operations in read-only mode. The root cause is insufficient parsing and normalization of SQL statements before the read-only check is applied. The attack vector is network-based, requiring network access to the MCP server; no authentication bypass is required if the attacker already has access to invoke the server. An attacker can craft malicious SQL statements with inline comments (e.g., /* ... */) to trigger execution of forbidden operations such as INSERT, UPDATE, DELETE, or DROP. AWS emphasizes that this is a best-effort safeguard; proper mitigation requires correctly scoped database user permissions. A patch is available in versions after 1.0.21.

Affected products

  • AWS Labs mysql-mcp-server <=1.0.21

Timeline

  • 2026-09-09: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.