Rightshold™ Sign up
Rightshold is live — the trust layer for AI agents.Launched November 23, 2026.Evidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · MCP security

We use WhoDB's MCP server so an AI assistant can query our PostgreSQL and MySQL databases, with --read-only on some and --confirm-writes on others. A CVE for WhoDB's whodb_query tool was published November 27, 2026. Could the assistant have written files or created tables without asking, which version fixes it, and what else should we change?

Last updated

TL;DR: Before the fix, yes. CVE-2026-138032 (GHSA-rv9x-jh6w-58xh, published November 27, 2026, CVSS 4.0 score 6.0) says WhoDB from 0.88.0 classified SQL for the MCP whodb_query tool with a keyword list that left out INTO, OUTFILE and DUMPFILE. So read-shaped statements such as PostgreSQL SELECT ... INTO a new table, MySQL SELECT ... INTO OUTFILE or DUMPFILE, and PostgreSQL lo_export ran without the approval --confirm-writes promises, and some got through --read-only. WhoDB's own advisories (GHSA-pvf2-6h4x-r24j and GHSA-6mr5-wx6p-65fg, from September 30, 2026) confirmed files created on the database host and new tables in PostgreSQL, bounded by what the connected database account may do. The fix replaced the keyword list with a fail-closed read grammar. Its commit is in 0.132.0, which is the version the CVE names; WhoDB's advisories list 0.134.0 as patched and its release notes name both fixes. The CVE arrived two months after the fix, so the real exposure is a WhoDB that was pinned and never upgraded. Upgrade to 0.134.0 or later (0.139.0 was current on November 28) and connect with an account that has no FILE, CREATE or server-file privileges.

What should I check, step by step?

1. Check every WhoDB install that serves MCP, Community and Enterprise editions alike (they share the CLI/MCP code): from 0.88.0 up to 0.131.0 is affected. Upgrade to 0.134.0 or later; 0.139.0 was released November 17, 2026.

  1. Give the account WhoDB connects with only the reads it needs. On MySQL, no FILE privilege; on PostgreSQL, no superuser, no pg_read_server_files or pg_write_server_files, and no CREATE in schemas the assistant can reach.
  2. On MySQL, set secure_file_priv to a directory nothing reads from, or to NULL to turn server-side file import and export off.
  3. Look on database hosts for files you didn't create in directories the database process can write, and in PostgreSQL for tables made by WhoDB's account that nobody asked for.
  4. Don't count on --security=strict as the fix for older versions. WhoDB's advisory says putting a newline between INTO and OUTFILE got past its substring check and still wrote a file.
  5. Treat read-only and confirm-writes as one layer. The database's own permissions are the layer that holds when a classifier is wrong.
  6. Keep a dated note of the WhoDB version, the account grants and the flags you run, so an incident review can tell which period was exposed.

What did CVE-2026-138032 let WhoDB's whodb_query tool do?

WhoDB decides whether a query from the MCP whodb_query tool is a read before applying --read-only and --confirm-writes. Before the fix, a statement starting with SELECT counted as a read unless it contained a word from a list of mutating keywords, and INTO, OUTFILE and DUMPFILE weren't on it.

What did WhoDB's MCP read-only mode stop, and what got through?

On PostgreSQL, --read-only did block SELECT ... INTO a table, because 0.130.0 had added a database-enforced read-only transaction. That protection came from the database, not from WhoDB's classifier.

What did WhoDB's fix change, and why does the late CVE matter?

The fix commit (September 29, 2026) replaces the keyword list as the automatic-execution boundary with a bounded read grammar. Anything outside it counts as a write: unrecognised syntax, routine calls beyond standard aggregates, SELECT INTO, OUTFILE and DUMPFILE. It needs confirmation in the default mode and is refused in read-only mode. Protected reads also go through each connector's read-only path, and unsupported connectors are refused rather than run normally.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Record a receipt for our WhoDB CVE-2026-138032 cleanup: the version we moved to, the reduced database grants, and a hash of the file-and-table audit from the database hosts.”

One-click setup

{
  "tool": "record_action",
  "arguments": {
    "action_type": "security.incident_cleanup",
    "outcome": "success",
    "occurred_at": "2026-11-28T20:00:00Z",
    "client_event_id": "whodb:cve-2026-138032:cleanup",
    "summary": "WhoDB upgraded from 0.129.0 to 0.139.0 on CLI MCP and desktop installs; MySQL FILE privilege revoked and secure_file_priv set; PostgreSQL account without CREATE or server-file roles; audited database hosts for unexpected files and tables created by the WhoDB account, none found",
    "action_sha256": "<sha256 of the audit report and the exported grants>"
  }
}

Rightshold isn't affiliated with WhoDB or Clidey. Details are from GitHub's advisory database entry GHSA-rv9x-jh6w-58xh (CVE-2026-138032), WhoDB's repository advisories GHSA-pvf2-6h4x-r24j and GHSA-6mr5-wx6p-65fg, the fix commit and the 0.134.0 release notes, with the current release from WhoDB's GitHub releases, all read November 28, 2026. Advisories get updated; confirm affected and fixed versions on the linked pages.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'