v0.2.0 · live
CAPFRAME
§ toolsandboxmcp-server-sqlite

write_query

on pypi:mcp-server-sqlite@2025.4.25

Severity

critical1
high1
medium1
low0
info0

3 findings on this tool

  1. criticalexcessive agencyf-r7-write_query

    Tool `write_query` exposes a code/command execution surface

    `write_query` looks like it executes code or shell commands (Execute an INSERT, UPDATE, or DELETE query on the SQLite database). Arbitrary execution is the maximal authority a tool can hold -- it subsumes every other caveat, so it should never be exposed to an agent without a hard sandbox and an explicit, narrowly-scoped capability.

    fix: Do not expose raw code/shell execution to an agent. If unavoidable, run it in a disposable sandbox with no network + no host FS, gate it behind a capframe-bind capability scoped to an allow-list of commands, and require holder-of-key proof per call.

    OWASP LLM08NIST MANAGE-2.2ATLAS T0051
  2. highexcessive agencyf-r3-write_query

    Tool `write_query` name implies a side effect that is not declared

    `write_query` looks like a side-effecting tool (its name contains a mutation verb), but its `side_effects` declaration is []. A policy synthesizer cannot produce safe rules for this tool because it cannot tell what it actually does.

    fix: Declare the tool's true side effects explicitly. If the tool is genuinely read-only, rename it to match (e.g. `email.preview` rather than `email.send`).

    OWASP LLM08NIST MEASURE-2.6ATLAS T0051
  3. mediumunconstrained inputf-r1-write_query

    Tool `write_query` accepts unconstrained string input

    The following string parameter(s) have no `maxLength` constraint: `query`. Unbounded strings let an attacker stuff arbitrary payloads through the tool, including indirect-injection content.

    fix: Add a `maxLength` to each string property, or constrain with an `enum` or `pattern`. Most legitimate tool inputs fit under a few hundred bytes.

    OWASP LLM01NIST MEASURE-2.3ATLAS T0051

About this tool

write_query is one of 6 tools exposed by mcp-server-sqlite. The server scored 62/100 overall against the capframe rule engine (source: sandbox). Last scanned 2026-06-05.

The findings above are emitted by the public capframe.findings.v1 schema. Disagree with one? Open an issue.