# CVE-2026-130008: sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe\_table

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.54% (percentile 39, 2026-11-29)
- **CWE:** CWE-89, CWE-863
- **Aliases:** GHSA-q433-mp6c-8v4f, GO-2026-7006
- **Published:** 2026-11-18T16:46:08.154Z
- **Modified:** 2026-11-23T20:30:15.156Z

## Who should check

- Projects that depend on Go package github.com/StacklokLabs/sqlite-mcp (\< 0.1.2)
- Anyone running StacklokLabs sqlite-mcp \< 0.1.2

## Description

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.

## Affected and fixed versions

- Go `github.com/StacklokLabs/sqlite-mcp`: affected \< 0.1.2; fixed 0.1.2 (ghsa)
- StacklokLabs sqlite-mcp: \< 0.1.2 (cvelist)

## Technologies

Go modules

## Mitigation

- Upgrade github.com/StacklokLabs/sqlite-mcp to 0.1.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-130008. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-130008.md
Affected: github.com/StacklokLabs/sqlite-mcp < 0.1.2
Fixed in: 0.1.2

Steps:
1. Search this machine and project for github.com/StacklokLabs/sqlite-mcp (Go), StacklokLabs sqlite-mcp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-130008 being exploited?

There is no confirmed exploitation: CVE-2026-130008 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-130008?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-130008?

github.com/StacklokLabs/sqlite-mcp \< 0.1.2.

### Is there a fix for CVE-2026-130008?

Yes. Fixed in 0.1.2. Upgrade github.com/StacklokLabs/sqlite-mcp to 0.1.2 or later.

### How do I check if I'm affected by CVE-2026-130008?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/StacklokLabs/sqlite-mcp/security/advisories/GHSA-q433-mp6c-8v4f>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-130008>
- patch: <https://github.com/StacklokLabs/sqlite-mcp/pull/112>
- patch: <https://github.com/StacklokLabs/sqlite-mcp/commit/1da5a6582a4f9d90c778db5687ddcd0c39d2c1ec>
- patch: <https://github.com/StacklokLabs/sqlite-mcp/commit/3c244d61cc0a9c0cc5e4d74719c1dc83edcfa339>
- other: <https://github.com/StacklokLabs/sqlite-mcp/releases/tag/v0.1.2>
- other: <https://github.com/advisories/GHSA-q433-mp6c-8v4f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-130008>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-q433-mp6c-8v4f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-7006> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-130008> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-130008>
