If you use StacklokLabs sqlite-mcp, update to 0.1.2 or later

sqlite-mcp: read-only mode could be bypassed to write to the database and read other SQLite files, fixed in 0.1.2 · Security incident · GitHub (StacklokLabs/sqlite-mcp advisory) · StacklokLabs · Nov 19, 2026

What happened

CVE-2026-130008, published 19 Nov 2026 (GitHub advisory GHSA-q433-mp6c-8v4f): in read-only mode, the default, Stacklok's sqlite-mcp only checked that a query started with SELECT, and the driver ran every semicolon-separated statement after it. describe_table also put the table name straight into a PRAGMA query. The advisory says either path allowed ATTACH DATABASE, which opens files read-write, so a client could modify the protected database, read any SQLite file the server could read, and create new SQLite files where it could write.

How to prevent it

Don't rely on an MCP server's read-only flag alone: give it a database user or file that is read-only at the system level.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I use sqlite-mcp, which can read web pages, files, emails or tool output. Help me reduce the risk of prompt injection (hidden instructions in content the AI reads). 1) List what my setup can access (files, terminal, browser, MCP servers, email, databases) and what it can do without asking me. 2) Point out the riskiest combinations, e.g. reading untrusted content while also having access to secrets or the ability to send data out. 3) Suggest concrete settings: require approval for commands and network calls, remove MCP servers I don't need, use read-only tokens, and keep the tool updated. 4) Give me a short checklist to follow before opening untrusted repos or documents. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: trusting agents & ai input

An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.

A quick checklist before you ship

More on this: every trusting agents & ai input story and our related guide.

Tools involved

sqlite-mcp stories, MCP stories

Related stories

Source: original post on GitHub (StacklokLabs/sqlite-mcp advisory) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.