sqlite-mcp read-only mode bypass vulnerability fixed
Start here
StacklokLabs' sqlite-mcp has published a security advisory stating that versions before 0.1.2 could be bypassed in the default read-only mode, and that this has been fixed in v0.1.2. There are two bypass paths: execute_query only checks whether the statement starts with SELECT, while the modernc.org/sqlite driver executes each semicolon-separated statement; describe_table splices table_name into PRAGMA table_info(%s) without protection. Executing ATTACH DATABASE via either path can open a file in read-write mode, thereby modifying databases that read-only mode was 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-empty files that are not SQLite 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 Go vulnerability database subsequently included GO-2026-7006, which likewise describes bypassing read-only mode via statement chaining and SQL injection in describe_table; this entry was automatically generated from a third-party source, has not been reviewed, and its details have not been verified by the Go team.
Generated by AI from reports · Updated 5 days ago
Attention and developments
Attention, hourly
Now 36, -1% in 24 hours·Peak 39 (Nov 25 02:00)
Progress timeline
- GitHub Security AdvisoriesSelectedsqlite-mcp versions before 0.1.2 have a read-only mode bypass, triggerable via chained statement execution and SQL injection
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.
- Date not givenGo Packagessqlite-mcp describe_table SQL injection can bypass read-only mode (GO-2026-7006)
Go vulnerability database entry GO-2026-7006: StacklokLabs' sqlite-mcp has a read-only mode bypass vulnerability. The bypass is achieved via statement chaining and SQL injection in describe_table. This report is unreviewed, automatically generated from a third-party source, and its details have not been verified by the Go team.
Related discussion
Attention trend
New sources per day
- Nov 20: 1 new sources (1 outlets, 0 accounts)
- Nov 21: 0 new sources (0 outlets, 0 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 0 new sources (0 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 1 new sources (1 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)