HOL-VULN-2026-0033HOL vulnerability recordCVSS 4.0 8.2 · HighPublic

Read-only mode bypass via statement chaining and SQL injection in StacklokLabs/sqlite-mcp

Read-only mode is the default in sqlite-mcp, and a client who can call its tools can still write. The execute_query tool checks only that a query starts with SELECT. The SQLite driver runs every statement in the string it is given, separated by semicolons, so anything placed after a first SELECT runs with no check at all. The describe_table tool has its own hole: it places the caller's table name straight into a PRAGMA table_info call, with no quoting or binding, so a crafted name changes the query. Either path can also run ATTACH DATABASE, which opens another file read-write whatever mode the main connection is in. Attaching the protected database itself makes that database writable. Attaching a different path reads that file, or creates a new SQLite file there if none exists. So a client the operator meant to limit to reading can change the protected database, read other SQLite files the server process can reach, and create files where the process can write. The server has no built-in authentication and by default listens on all interfaces, so anyone who can reach the port can use this unless the server sits behind an authenticating proxy. Versions below 0.1.2 are affected. Version 0.1.2 fixes it: ATTACH is disabled, read-only connections set query_only, execute_query refuses more than one statement, and describe_table binds its table name as a parameter. CVE-2026-130008 is assigned, and the GitHub user bebold6133 is credited as reporter.

Affected artifact
StacklokLabs/sqlite-mcp — execute_query statement handling and the describe_table tool, in default read-only modemcp server
Affected versions
github.com/StacklokLabs/sqlite-mcp ≥ 0 to < 0.1.2
Fixed in
0.1.2
Last verified
2026-12-06

Severity

CVSS 4.0 score 8.2 (High), scored by HOL.

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

What this means

GHSA-q433-mp6c-8v4f / CVE-2026-130008: sqlite-mcp's default read-only mode is bypassed by statement chaining in execute_query and injection in describe_table, and ATTACH reaches other files. Fixed in 0.1.2; upgrade from any earlier version.

What to do

Upgrade sqlite-mcp to 0.1.2 or later. On affected versions, do not expose the server to untrusted clients: keep it on a loopback or private interface, or place it behind an authenticating proxy, per the advisory's workarounds.

Evidence

Precondition. Ability to call the sqlite-mcp tools on a version below 0.1.2. The server has no built-in authentication and listens on all interfaces by default, per the advisory.

Source proof. Per the advisory, in read-only mode a statement chained after SELECT 1 runs unchecked, and ATTACH DATABASE through either tool path opens the protected database read-write. HOL did not run the server; this rests on the advisory.

Version determination. Determined by range — The advisory states sqlite-mcp below 0.1.2 is affected, with 0.1.2 as the patched version.

Disclosure

Disclosure state: independent public · Publisher: StacklokLabs/sqlite-mcp

Naming decision: named. Vendor named as drafted. Finding already public with fix published; naming call sits with this job under Nov 24-25 2026 rules.

Vendor response: fixed — Fix published in 0.1.2.

  1. 2026-10-19 · vendor action

    Maintainers published advisory GHSA-q433-mp6c-8v4f with the fix in 0.1.2.

  2. 2026-12-06 · guard update

    Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 0.1.2, CVE-2026-130008 assigned.

  3. 2026-12-06 · guard update

    Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 0.1.2, CVE-2026-130008 assigned.

  4. 2026-12-06 · disclosure

    Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 0.1.2, CVE-2026-130008 assigned.

Affected artifact references

Cite this record

[HOL-VULN-2026-0033] Read-only mode bypass via statement chaining and SQL injection in StacklokLabs/sqlite-mcp — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0033

Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0033

Found an error in this record, or want to appeal it? Report an issue or appeal.

Appeal or correct this record

Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.

Appeal or correct HOL-VULN-2026-0033