Summary
CVE-2026-130008 is a read-only mode bypass and SQL injection vulnerability (CWE-89, CWE-863) in StacklokLabs sqlite-mcp, affecting versions before 0.1.2. An unauthenticated network attacker can bypass the default read-only protections to modify protected databases or access other SQLite files readable by the server process. The vulnerability is rated High (CVSS 8.2).
Technical details
- Root cause (execute_query): The tool only checks that a query begins with
SELECT, while the SQLite driver executes all semicolon-separated statements, so trailing statements (e.g. afterSELECT 1;) run unchecked. - Root cause (describe_table): The caller-controlled
table_nameis interpolated directly into aPRAGMA table_info()query without sanitization. - ATTACH DATABASE: Either path can issue
ATTACH DATABASEcommands, which can open files in read-write mode regardless of connection settings. - Trigger conditions: Network access to the server. The server has no built-in authentication and, by default, listens on
:8080on all interfaces. - Attack vector: Network, no privileges and no user interaction required.
- Impact: Modification of databases intended to be read-only, access to any SQLite database the server process can read, and creation of or writes to SQLite files within the server’s writable paths.
Affected software
- sqlite-mcp (StacklokLabs) versions earlier than 0.1.2
Severity
- CVSS v3.1 base score: 8.2 (High)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade sqlite-mcp to version 0.1.2 or later. The fix disables
ATTACH(SQLITE_LIMIT_ATTACHEDset to 0), enablesquery_onlymode for read-only connections, rejects multi-statement queries inexecute_query, and uses bound parameters for table names indescribe_table. - If patching is not immediately possible: Restrict server exposure to trusted networks, use read-only filesystem mounts, or deploy the server behind an authenticating proxy.

