セキュリティ
AIエージェントにデータベースを読み取り専用でつないで、安心していませんか。
MCPサーバーのDBHubでは、その読み取り専用が効かず、書き込みとテーブル削除まで通ると公式に公表されました。
対象はMySQLとMariaDBのつなぎ口で、0.22.6より前の版が影響を受けます。
今日のうちに版を上げて、つなぐアカウントの権限も読み取りだけに絞ってください。
出典の原文(引用)
GitHub Advisory Database, GHSA-j656-3hf2-fvjc "DBHub: MySQL and MariaDB comment interpretation bypasses read-only SQL validation" / "Published to the GitHub Advisory Database Nov 2, 2026", "Reviewed Nov 2, 2026" / Package: npm @bytebase/dbhub, "Affected versions: < 0.22.6", "Patched versions: 0.22.6" / Summary: "Read-only mode can be bypassed on the MySQL and MariaDB connectors, allowing arbitrary writes and DDL (for example DROP TABLE) through a query that passes the read-only check." / "In read-only mode a caller can still execute arbitrary write and DDL statements (for example DROP TABLE), which defeats the protection that read-only mode is meant to provide when a database is exposed to an AI agent." / Impact: "Read-only mode is the control operators rely on to let an assistant read from a database without being able to change it. With this bypass, anyone who can influence the SQL the assistant sends ... can perform writes and destructive DDL against MySQL and MariaDB." / repo description: "Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite."— github.com
