All vulnerabilities

Go

CVE-2026-130008

sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table

Severity
High 8.2
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.1.2
Exploit chance
0.4% in the next 30 daysHigher than 30% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Incorrect authorization (CWE-863)SQL injection (CWE-89)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Also known as
GHSA-q433-mp6c-8v4f
Sources
OSV.dev and GitHub

Description

In read-only mode (the default), a client that can call the MCP tools can write to the database the server is meant to expose read-only, read other SQLite files, and create new SQLite files anywhere the server process can write. There are two ways in: statement chaining through execute_query, and SQL injection through describe_table.

  • Statement chaining in execute_query. The only check was that the query starts with SELECT. The modernc.org/sqlite driver runs every ;-separated statement in one call, so anything after SELECT 1; ran unchecked.
  • SQL injection in describe_table. The table_name argument was interpolated into PRAGMA table_info(%s) with no guard.
  • Escaping read-only mode. Through either path, ATTACH DATABASE opens a file read-write regardless of the main connection's mode=ro. Attaching the protected database itself made it writable. Attaching another path read that file, or created it if it did not exist.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/StacklokLabs/sqlite-mcpGo · osv:Go:github.com/StacklokLabs/sqlite-mcp
  • Every version before 0.1.2

About github.com/StacklokLabs/sqlite-mcp

This is the only vulnerability in github.com/StacklokLabs/sqlite-mcp in our list.

References