Description
A path traversal vulnerability exists in the HTTP tool URL builder of googleapis/mcp-toolbox.

When constructing downstream API requests, the URL builder substitutes user-controlled pathParams into the configured tool path and parses the resulting string as a relative URL. While it checks that the input does not alter the scheme, host, or user info, it relies on ResolveReference for the final URL resolution. Because dot segments (../) are normalized during this resolution step, an attacker can supply path parameters containing directory traversal sequences to escape the operator-configured path scope. This allows the client to coerce the toolbox into making requests to unintended endpoints on the same target host while forwarding the toolbox's configured credentials (e.g., bypassing a restricted path like /api/v1/users/{{.id}} to reach /admin/secrets).
Published: 2026-06-29
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw exists in the HTTP tool URL builder of Google’s MCP Toolbox for Databases. The builder concatenates user‑controlled pathParams into a configured path and then parses the result as a relative URL. Though it checks the scheme, host, and user info, it relies on ResolveReference for resolution; dot segments (../) are normalized during this step. An attacker may thus supply traversal sequences in pathParams, causing the toolbox to resolve outside the intended tool path and forward the operator’s credentials to unintended endpoints on the same host. This can expose sensitive data or allow the attacker to invoke restricted API calls such as /admin/secrets, effectively elevating privileges or obtaining confidential information.

Affected Systems

The vulnerability affects Google’s MCP Toolbox for Databases (googleapis/mcp-toolbox). No specific version ranges are listed, so all versions that include the vulnerable URL builder logic are potentially impacted.

Risk and Exploitability

The CVSS score of 9.3 indicates a high severity with full exploitation potential. The EPSS score is not available but the lack of an KEV listing does not diminish the risk; the flaw is locally exploitable by inserting crafted path parameters into any request that uses the toolbox’s URL builder. An attacker who can influence the pathParams—such as a compromised operator or a malicious service using the toolbox—can make the toolbox send requests to any endpoint on the configured host, using the toolbox’s configured credentials. The result is unauthorized access or data leakage. Given the simply normalizing bug and lack of input validation, exploitation is straightforward once the attacker can influence the pathParams.

Generated by OpenCVE AI on June 29, 2026 at 19:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade or patch MCP Toolbox to the latest version that includes the URL builder fix; review the release notes and apply the fix as soon as possible.
  • If an immediate patch is unavailable, prototype a temporary guard that sanitizes pathParams by stripping or encoding dot segments before passing them to the resolver, ensuring the resolved path remains within the configured tool path.
  • Restrict the JVM or container environment in which the toolbox runs to limit outbound network access only to the intended target host and required APIs, reducing the attack surface if a path traversal escape occurs.
  • Monitor outbound HTTP traffic originating from the toolbox for unexpected endpoints; anomaly detection can surface unexpected requests that may indicate exploitation attempts.

Generated by OpenCVE AI on June 29, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Google
Google mcp Toolbox For Databases
Vendors & Products Google
Google mcp Toolbox For Databases

Mon, 29 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 29 Jun 2026 18:15:00 +0000

Type Values Removed Values Added
Description A path traversal vulnerability exists in the HTTP tool URL builder of googleapis/mcp-toolbox. When constructing downstream API requests, the URL builder substitutes user-controlled pathParams into the configured tool path and parses the resulting string as a relative URL. While it checks that the input does not alter the scheme, host, or user info, it relies on ResolveReference for the final URL resolution. Because dot segments (../) are normalized during this resolution step, an attacker can supply path parameters containing directory traversal sequences to escape the operator-configured path scope. This allows the client to coerce the toolbox into making requests to unintended endpoints on the same target host while forwarding the toolbox's configured credentials (e.g., bypassing a restricted path like /api/v1/users/{{.id}} to reach /admin/secrets).
Title Path Traversal in googleapis/mcp-toolbox HTTP Tool URL Builder
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Google Mcp Toolbox For Databases
cve-icon MITRE

Status: PUBLISHED

Assigner: Google

Published:

Updated: 2026-06-29T18:26:17.242Z

Reserved: 2026-06-09T00:57:55.333Z

Link: CVE-2026-11720

cve-icon Vulnrichment

Updated: 2026-06-29T18:25:41.698Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T10:03:50Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')