sqlite-mcp versions before 0.1.2 have a read-only mode bypass, triggerable via chained statement execution and SQL injection
sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table
StacklokLabs' sqlite-mcp has published a security advisory: versions before 0.1.2 can have read-only mode bypassed in the default read-only mode, and this is fixed in v0.1.2. The two bypass paths are: execute_query only checks that the statement starts with SELECT, while the modernc.org/sqlite driver executes each semicolon-separated statement; and describe_table concatenates table_name into PRAGMA table_info(%s) without protection. Executing ATTACH DATABASE through either path can open a file in read-write mode, thereby modifying the database that read-only mode is meant to protect, reading any SQLite file readable by the server process, or creating a new SQLite file in a location writable by the process; non-SQLite non-empty files are rejected. The server has no built-in authentication and by default listens on :8080 on all interfaces; anyone who can reach that port when no authentication proxy is deployed can exploit it. The vulnerability was reported by @bebold6133.
The advisory gives two specific paths for bypassing read-only mode and the v0.1.2 fix; teams deploying this MCP server can use them to check their exposure and upgrade.