Security Vulnerability in sqlite-mcp by Stacklok Labs
CVE-2026-130008
What is CVE-2026-130008?
The sqlite-mcp server, designed for SQLite, has a significant vulnerability that allows unauthorized bypassing of its default read-only mode. This security flaw exists due to the execute_query function, which can accept leading SELECT statements while executing trailing ones. Additionally, the describe_table function can interpolate caller-controlled inputs into PRAGMA table_info. As a result, attackers can issue commands like ATTACH DATABASE, which enables them to write to read-only databases, access other SQLite databases, or create writable SQLite-format files in server-permissible paths. This vulnerability is exacerbated by a lack of built-in authentication, with the server exposing itself to all interfaces on port 8080 by default, making it a target for any reachable client. The issue has been addressed in version 0.1.2.
Affected Version(s)
sqlite-mcp < 0.1.2
