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

> Any client reaching the sqlite-mcp port can bypass read-only mode to read or write SQLite files or create writable files; users of this MCP server should care.

- **Severity:** High 8.2 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** Yes
- **Published:** 18 Nov 2026
- **Updated:** 18 Nov 2026
- **Also known as:** GHSA-q433-mp6c-8v4f, GO-2026-7006

## What is CVE-2026-130008?

CVE-2026-130008 is a high-severity security feature bypass vulnerability in StacklokLabs sqlite-mcp, published on 18 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), CWE-863 (Incorrect Authorization)

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

2 open source packages ship an affected version, including github.com/StacklokLabs/sqlite-mcp.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `github.com/StacklokLabs/sqlite-mcp` | Go | `pkg:golang/github.com/stackloklabs/sqlite-mcp` | All versions | 0.1.2 |
| `github.com/StacklokLabs/sqlite-mcp` | Go | `pkg:golang/github.com/stackloklabs/sqlite-mcp` | All versions | 0.1.2 |

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | fixed | `github.com/StacklokLabs/sqlite-mcp` | 0.1.2 |

## How do I fix CVE-2026-130008?

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

## Is CVE-2026-130008 being exploited?

There is no known exploitation of CVE-2026-130008 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-130008 and fix it if it is affected.

What it is: CVE-2026-130008 is a high-severity security feature bypass vulnerability in StacklokLabs sqlite-mcp, published on 18 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-130008 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- github.com/StacklokLabs/sqlite-mcp (Go): affected all versions; fixed in 0.1.2
- github.com/StacklokLabs/sqlite-mcp (Go): affected all versions; fixed in 0.1.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-130008/ (Markdown: https://insights.sbomify.com/CVE-2026-130008/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-130008
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-130008
- OSV: https://osv.dev/vulnerability/CVE-2026-130008

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-130008/
Summaries are generated and may contain mistakes; the official description above is the record.
