Read-only mode bypass in sqlite-mcp allows writes via ATTACH DATABASE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass, SQL injection
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-863 and CWE-89.
Summary
sqlite-mcp from StacklokLabs is affected before 0.1.2. Its default read-only mode can be bypassed through execute_query, which accepts a leading SELECT but also runs trailing statements, and through describe_table, which interpolates the table_name into a PRAGMA statement (CWE-89). An attacker who can reach the server, which has no built-in authentication and listens on all interfaces at port 8080 by default, can issue ATTACH DATABASE to open files read-write, modify the protected database, read other SQLite files, or create new SQLite-format files.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
sqlite-mcp is a Model Context Protocol server for SQLite. Prior to 0.1.2, the default read-only mode can be bypassed through execute_query, which accepts a leading SELECT while the SQLite driver executes trailing statements, and through describe_table, which interpolates the caller-controlled table_name into PRAGMA table_info. Either path can issue ATTACH DATABASE, which opens an attached file read-write despite mode=ro and can make the protected database writable, read other SQLite database files, or create a SQLite-format file at a path writable by the server process. Existing non-empty files that are not SQLite databases are refused and left unchanged. The server has no built-in authentication and listens on all interfaces at :8080 by default, so any client that can reach the port can invoke these tools unless an authenticating proxy is in place. This issue is fixed in version 0.1.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| StacklokLabs | sqlite-mcp | before 0.1.2 | 0.1.2 | Patch available | CNA |
| — | github.com/StacklokLabs/sqlite-mcp (Go) | before 0.1.2 | 0.1.2 | Patch available | GHSA-q433-mp6c-8v4f |
- sqlite-mcp VendorStacklokLabs Affected before 0.1.2 Fixed in 0.1.2 Patch available CNA
- github.com/StacklokLabs/sqlite-mcp (Go) Vendor— Affected before 0.1.2 Fixed in 0.1.2 Patch available GHSA-q433-mp6c-8v4f
Remediation
Update sqlite-mcp to version 0.1.2, which fixes the issue for both the StacklokLabs sqlite-mcp package and the Go module github.com/StacklokLabs/sqlite-mcp.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA sqlite-mcp (StacklokLabs) Fixed in 0.1.2
- Fix · GHSA-q433-mp6c-8v4f github.com/StacklokLabs/sqlite-mcp (Go) Fixed in 0.1.2 Advisory →
Timeline
- 2026-11-18 Threatist record created from CVE-2026-130008
- 2026-11-18 CISA SSVC decision points changed
- 2026-11-19 Alias added: GHSA-q433-mp6c-8v4f
- 2026-11-19 Fix available: Go/github.com/StacklokLabs/[email protected] · GHSA-q433-mp6c-8v4f
- 2026-11-19 CVSS score added · GHSA-q433-mp6c-8v4f
- 2026-11-19 Weakness changed · GHSA-q433-mp6c-8v4f
- 2026-11-19 7 new references · GHSA-q433-mp6c-8v4f
References
Other 6
- https://github.com/StacklokLabs/sqlite-mcp/security/advisories/GHSA-q433-mp6c-8v4f
- https://github.com/StacklokLabs/sqlite-mcp/pull/112
- https://github.com/StacklokLabs/sqlite-mcp/commit/1da5a6582a4f9d90c778db5687ddcd0c39d2c1ec
- https://github.com/StacklokLabs/sqlite-mcp/commit/3c244d61cc0a9c0cc5e4d74719c1dc83edcfa339
- https://github.com/StacklokLabs/sqlite-mcp/releases/tag/v0.1.2
- https://github.com/StacklokLabs/sqlite-mcp
More StacklokLabs vulnerabilities
- TI-2026-36896 MKP: Unbounded Pod Log Read via Attacker-Controlled `limitBytes`/`tailLines` Causes Memory Exhaustion CVSS 3.1HIGH 7.5
Sources
- CVE-2026-130008 · CVE Program
- CVE-2026-130008 · NVD
- FIRST EPSS
- GHSA-q433-mp6c-8v4f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences