GHSA-q433-mp6c-8v4f: sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table
- Identifiers
- CVE-2026-130008GHSA-q433-mp6c-8v4f
- Published
- Record updated
- Affected
- github.com/StacklokLabs/sqlite-mcp < 0.1.2
- Fixed in
- 0.1.2
- released October 19, 2026, 31 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
GHSA-q433-mp6c-8v4f affects sqlite-mcp, where a client with access to the MCP tools can break out of the default read-only mode. Statement chaining in execute_query runs anything after a leading SELECT, and SQL injection in describe_table interpolates table_name into PRAGMA table_info(%s). Through either path, ATTACH DATABASE opens files read-write, letting an attacker modify the protected database, read other SQLite files, or create new ones. The server has no built-in authentication and listens on :8080 on all interfaces by default.
Mitigation
Fixed in v0.1.2. Upgrade to v0.1.2. If you cannot upgrade, don't expose the server to untrusted clients: keep it on a loopback or private interface, or run it behind an authenticating proxy such as ToolHive. Mount only the database you intend to expose, read-only at the filesystem or container level.
Topics
Related items
- CriticalGHSA-9x8x-crjq-g64h: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesSimilar attack · GitHub Advisory Database
- HighGHSA-24pw-rf5p-mgp7: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP modeSimilar attack · GitHub Advisory Database
- HighGHSA-m932-63jc-4jqq: k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool executionSimilar attack · GitHub Advisory Database
- HighGHSA-3mgh-93r5-r7jf: CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCESimilar attack · GitHub Advisory Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSimilar attack · GitHub Advisory Database