CVE-2026-31841: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-31841 is an information disclosure vulnerability in Hyperterse, a tool-first MCP (Model Context Protocol) framework for building AI-ready backend surfaces from declarative configuration. The vulnerability causes the search tool to expose raw SQL queries in its responses, leaking internal database statements that were intended to remain hidden from public view. It affects Hyperterse versions >= 2.0.0 and < 2.2.0 (available via npm, Homebrew, and Shell), and was disclosed on March 12, 2026. The CVSS v3.1 base score is 6.5 (Medium) (Github Advisory, Hyperterse Advisory).

Technical details

The root cause is classified as CWE-433 (Unparsed Raw Web Content Delivery): Hyperterse's search tool, introduced in v2.0.0, inadvertently included the raw SQL statement field in MCP search result payloads returned to clients. These SQL statements are meant to be executed internally by the backend and should never be surfaced to users or LLMs. Because the search endpoint requires no authentication and accepts natural language queries, any network-accessible client — including an LLM agent — could trigger the disclosure simply by invoking the search tool. The fix in v2.2.0 removes the statement field from search result payloads and adds regression tests to prevent recurrence (Github Advisory, Hyperterse Release).

Impact

Successful exploitation results in unauthorized disclosure of internal SQL query logic, including database schema structure, table names, column names, and query patterns. This information can be leveraged by attackers to identify additional attack vectors such as SQL injection targets or sensitive data locations, and may facilitate lateral movement within the backend infrastructure. Availability is not impacted, but both confidentiality and integrity are affected at a low level — confidentiality through schema exposure and integrity through the potential for attackers to craft targeted follow-on attacks using the disclosed query patterns (Hyperterse Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability is trivially exploitable by any unauthenticated network attacker who can reach the Hyperterse search endpoint, requiring only a natural language query to the MCP search tool. The EPSS score is approximately 0.043% (14th percentile), indicating a low near-term exploitation probability. CVE-2026-31841 is not listed in the CISA Known Exploited Vulnerabilities catalog (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Hyperterse instances running versions >= 2.0.0 and < 2.2.0 by scanning for exposed MCP endpoints or reviewing npm package deployments.
  2. Access the search tool: Send a natural language query to the Hyperterse MCP search endpoint without any authentication credentials, as the endpoint requires none.
  3. Extract SQL statements: Review the search tool's response payload, which in vulnerable versions includes a statement field containing the raw SQL query associated with each tool result.
  4. Analyze disclosed queries: Parse the returned SQL statements to map database schema (table names, column names, relationships) and understand internal query logic.
  5. Leverage for follow-on attacks: Use the disclosed schema and query patterns to identify potential SQL injection points, sensitive data tables, or other attack vectors within the backend (Hyperterse Advisory, Github Advisory).

Indicators of compromise

  • Network: Unusual or repeated unauthenticated HTTP requests to the Hyperterse MCP search endpoint from unknown or external IP addresses; high-frequency natural language search queries that appear automated or systematic.
  • Logs: Application logs showing search tool invocations returning responses with a statement field present; access log entries for the search endpoint from unexpected sources or at unusual times.
  • Application Behavior: Search responses containing SQL query strings in the payload (look for keywords such as SELECT, FROM, WHERE, JOIN in outbound API responses from the search tool).

Mitigation and workarounds

The vendor has released a patch in Hyperterse v2.2.0, which removes the statement field from MCP search result payloads and adds regression tests. All users running versions >= 2.0.0 and < 2.2.0 should upgrade to v2.2.0 immediately via npm, Homebrew, or Shell as applicable. No configuration-based workaround is documented; upgrading is the only recommended remediation. Additionally, administrators should audit logs on previously vulnerable instances to check for unauthorized access to the search endpoint (Hyperterse Advisory, Hyperterse Release).

Community reactions

Coverage of CVE-2026-31841 has been limited to automated vulnerability tracking platforms and minor security blogs. A brief post appeared on dev.to and infinitsec.net summarizing the raw SQL exposure issue, and the CVE was noted on Bluesky via automated CVE tracking accounts. No significant vendor statements beyond the original advisory, notable researcher commentary, or major media coverage have been identified (Github Advisory).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-gvwc-5hr5-44p8HIGH7.5
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-5jh3-w3fj-6758LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-5v8x-rm7w-m4c7LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-7pqp-3q23-mwr8LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-3qg4-7mq2-gm93MEDIUMN/A
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management