CVE-2026-31841: CVE-2026-31841: Raw Database Statement Exposure in Hyperterse MCP Search Tool
Source: Dev.to

Vulnerability ID: CVE-2026-31841
CVSS Score: 6.5 (Medium)
Published: 2026-03-12
Hyperterse versions 2.0.0 through 2.1.9 expose raw SQL statements via the Model Context Protocol (MCP) search tool. The tool returns internal representations without sanitization, leaking database schema details, table structures, and query logic.
TL;DR
Hyperterse = 2.0.0, < 2.2.0(fixed in2.2.0`)
Code Analysis
- Commit: 1fdb947 – Removes the raw
statementfield from the search hit map. - Commit: efa4005 – Hardened the search index by restricting statement indexing to adapter‑backed tools.
Mitigation Strategies
- Upgrade to Hyperterse
2.2.0or later. - Apply the principle of least privilege to the database service account.
- Manually sanitize tool definitions if patching is not immediately possible.
- Prefer handler‑only tools over SQL adapters for sensitive endpoints.
Remediation Steps
- Identify all deployments running Hyperterse MCP versions 2.0.0 – 2.1.9.
- Download the
2.2.0binaries or update the dependency via your package manager. - Restart the Hyperterse MCP server to load the updated runtime.
- Verify the fix by sending a
callToolrequest to thesearchendpoint and confirming that thestatementfield is absent from the JSON response.