Vulnerabilities in pkg:npm/hyperterse

PACKAGE
Advisory Identifier: GHSA-92gp-jfgx-9qpv
Advisory Summary

CVE-2026-31841 is a MODERATE (CVSS 6.5) raw exposure of database statements vulnerability (CWE-433: Unparsed Raw Web Content Delivery) affecting Hyperterse libraries in the npm ecosystem. The issue involves raw exposure of database statements in mcp search tool. Remediation is available by upgrading affected packages to version 2.2.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/hyperterse

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/hyperterse. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-92gp-jfgx-9qpv CVE-2026-31841 MODERATE Hyperterse: Raw exposure of database statements in MCP search tool

CVE-2026-31841 at a Glance

CVE Identifier CVE-2026-31841
GHSA Identifier GHSA-92gp-jfgx-9qpv
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-433: Unparsed Raw Web Content Delivery
Affected Product Hyperterse
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-31841

To remediate this vulnerability, upgrade all affected Hyperterse dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

hyperterse fixed: 2.2.0
npm install hyperterse@2.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls hyperterse

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-31841, inspect your project dependencies using npm:

npm ls hyperterse

Analyze the terminal output to locate any version of Hyperterse in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.0), your application is affected.

Note: The npm ls hyperterse command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-433: Unparsed Raw Web Content Delivery, where the product stores raw content or supporting code under the web document root with an extension that is not specifically handled by the server. In Hyperterse, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Hyperterse allows users to specify database queries for tools to execute under the hood. As of [v2.0.0](https://github.com/hyperterse/hyperterse/releases/tag/v2.0.0), there are only two tools exposed - `search` and `execute`. The `search` tool allows LLMs to search for tools using natural language. While returning results, Hyperterse also returned the raw SQL queries, exposing statements which were supposed to be executed under the hood, and protected from being displayed publicly. This issue has been fixed as of [v2.2.0](https://github.com/hyperterse/hyperterse/releases/tag/v2.2.0) and relevant tests to catch these have been added.

CVE-2026-31841 Affected Hyperterse Versions

1 component(s)
Fixed Versions:
2.2.0
Product / Package Ecosystem Affected Versions Fixed Version
hyperterse
npm
≥ 2.0.0
< 2.2.0
2.2.0

References

Frequently Asked Questions

What is CVE-2026-31841?
CVE-2026-31841 is a security vulnerability in Hyperterse involving Raw exposure of database statements in MCP search tool under CWE-433: Unparsed Raw Web Content Delivery.
Which Hyperterse versions are affected?
Affected versions include releases prior to 2.2.0 across affected packages: hyperterse.
What version fixes CVE-2026-31841?
Upgrading to 2.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hyperterse affected?
Yes, hyperterse is affected in releases prior to 2.2.0. Upgrade your dependency to 2.2.0 or later.
What is the CVSS score of CVE-2026-31841?
CVE-2026-31841 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-31841?
CVE-2026-31841 is classified under CWE-433: Unparsed Raw Web Content Delivery (The product stores raw content or supporting code under the web document root with an extension that is not specifically handled by the server.).
How can I check npm dependencies for CVE-2026-31841?
Run the dependency tree command: 'npm ls hyperterse'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-92gp-jfgx-9qpv",
  "modified" : "2026-03-12T18:32:54Z",
  "published" : "2026-03-12T18:32:54Z",
  "aliases" : [ "CVE-2026-31841" ],
  "summary" : "Hyperterse: Raw exposure of database statements in MCP search tool",
  "details" : "Hyperterse allows users to specify database queries for tools to execute under the hood. As of [v2.0.0](https://github.com/hyperterse/hyperterse/releases/tag/v2.0.0), there are only two tools exposed - `search` and `execute`. \n\nThe `search` tool allows LLMs to search for tools using natural language. While returning results, Hyperterse also returned the raw SQL queries, exposing statements which were supposed to be executed under the hood, and protected from being displayed publicly.\n\nThis issue has been fixed as of [v2.2.0](https://github.com/hyperterse/hyperterse/releases/tag/v2.2.0) and relevant tests to catch these have been added.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "hyperterse"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hyperterse/hyperterse/security/advisories/GHSA-92gp-jfgx-9qpv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-31841"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hyperterse/hyperterse"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hyperterse/hyperterse/releases/tag/v2.2.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-433" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-12T18:32:54Z",
    "nvd_published_at" : "2026-03-12T17:16:51Z"
  }
}