CVE-2026-11720

Path Traversal in googleapis/mcp-toolbox HTTP Tool URL Builder

Published Jun 29, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Github GHSA Github GHSA GHSA-vwxw-jrg6-9jxv MCP Toolbox HTTP tool path parameters allow traversal to unintended endpoints
History
Type Values Removed Values Added
First Time appeared Google
Google mcp Toolbox For Databases
Vendors & Products Google
Google mcp Toolbox For Databases
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
Google
Published
Updated
Jun 29, 2026, 6:26 PM
Reserved
Jun 9, 2026, 12:57 AM
Status
Analyzed
Published
Jun 29, 2026, 6:16 PM
Modified
Oct 25, 2026, 9:10 PM