VDB
Sign up
MEDIUM6.3

PYSEC-2026-3579

MySQL MCP Server is Vulnerable to SQL Injection Through its mysql URI Handler

Quick fix

PYSEC-2026-3579 — mysql-mcp-server: upgrade to the fixed version with the command below.

pip install --upgrade 'mysql-mcp-server>=0.3.0'

Details

A vulnerability was determined in designcomputer mysql-mcp-server up to 0.2.2. The impacted element is the function read_resource of the file src/mysql_mcp_server/server.py of the component mysql URI Handler. This manipulation of the argument uri_str causes sql injection. Remote exploitation of the attack is possible. The exploit has been publicly disclosed and may be utilized. Upgrading to version 0.3.0 is sufficient to resolve this issue. Patch name: 080bef9a96d625ce0dfbde573a08b93497871981. Upgrading the affected component is advised.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/mysql-mcp-server
Introduced in: 0Fixed in: 0.3.0
Fixpip install --upgrade 'mysql-mcp-server>=0.3.0'

References