Skip to content
HighVulnerability

GHSA-q433-mp6c-8v4f: sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table

Published
Record updated
View JSON
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.