AWS discloses read-only bypass flaw in awslabs mysql-mcp-server (CVE-2026-85788)
AWS published a security bulletin describing a vulnerability in the open-source, self-hosted awslabs.mysql-mcp-server package where the read-only enforcement mechanism could be bypassed using SQL inline comments, allowing statements the read-only check was meant to block to execute. The issue affects versions up to 1.0.21 and is fixed in 1.0.23. No AWS-hosted service confidentiality or integrity is affected, as the package is client-side and self-managed.
SECURITY · DATA · AI · VULNERABILITY · SECURITY ADVISORY
PUBLISHED SEP 11, 2026 20:35 UTC
WHAT CHANGED
In awslabs.mysql-mcp-server versions 1.0.21 and earlier, under certain conditions attackers or misconfigured clients could circumvent the server's read-only mode by embedding SQL inline comments, allowing write or other blocked statements to execute despite the read-only safeguard. AWS clarifies that read-only mode is a best-effort control, not a substitute for correctly scoped MySQL user permissions. The fix is included in version 1.0.23, installable via 'pip install --upgrade awslabs.mysql-mcp-server'. No workaround is available other than upgrading.
WHY IT MATTERS
Administrators who rely on the server's read-only mode as a security boundary rather than on properly scoped database credentials may unknowingly allow write operations against their MySQL databases. Because this is a self-hosted, client-side package, AWS will not patch it automatically for customers; each deployment must be manually upgraded and database permissions reviewed to enforce least privilege, especially removing the FILE privilege unless required.
WHO IS AFFECTED
- ROLES
- Database administratorsMCP server operators
- PRODUCTS
- awslabs.mysql-mcp-server (open-source Model Context Protocol server distributed via GitHub and PyPI)
- FEATURES
- Read-only enforcement / SQL statement filtering
- CONFIGURATIONS
- Self-hosted deployments of awslabs.mysql-mcp-server version 1.0.21 or earlierMySQL user credentials configured for the MCP server
- ENVIRONMENTS
- Self-managed/self-hosted client-side installations
- EXCLUSIONS
- AWS-managed services are not affected; this is a client-side, self-managed package
WHAT TO DO
- 01HIGHAUTOMATABLE
Upgrade awslabs.mysql-mcp-server to version 1.0.23 or later using 'pip install --upgrade awslabs.mysql-mcp-server'
DOCUMENTATION - 02MEDIUMAUTOMATABLE
Audit and restrict the MySQL user configured for the MCP server to the minimum privileges required, and remove the FILE privilege unless explicitly needed
DOCUMENTATION
TIMELINE
- ANNOUNCED
- SEP 10, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES, INC.
CVE-2026-85788 - Issue with awslabs mysql-mcp-server
PUBLISHED SEP 10, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.