CVE-2026-12210: universal-tool-calling-protocol python-utcp utcp-gql/utcp-websocket server-side request forgery

Published Jun 15, 2026
·
Updated

Summary

The fix for CVE-2026-44661 (commit 5b16e43) added the ensuresecureurl() / issecureurl() helpers and wired them into the three HTTP-family plugins, but it did not reach the GraphQL or WebSocket plugins. The GraphQL plugin (utcp-gql) still uses the startswith prefix check that the fix explicitly replaced, so http://127.0.0.1.attacker.example and http://localhost.evil.com pass it. The WebSocket plugin (utcp-websocket) performs no URL validation at all, even though its own docstrings state it enforces "WSS or localhost only." Both plugins reach the same SSRF that CVE-2026-44661 was filed for, and because both attach the call template's configured auth headers to the outbound connection, the SSRF can also leak API keys and OAuth tokens to an attacker-controlled host.

Details

In the CVE-2026-44661 fix (commit 5b16e43 ("fix(http): block SSRF via attacker-controlled OpenAPI servers[0].url")), two things in it pointed at sibling issues. The commit message says the change is "replacing the duplicated prefix check", and the new utcphttp/security.py docstring names the exact bug:

URLs whose hostname starts with localhost / 127.0.0.1 but isn't actually loopback (e.g. http://localhost.evil.com, http://127.0.0.1.attacker.example). The earlier startswith check let these through.

The word "duplicated" says the vulnerable check existed in more than one place. The fix only updated the three HTTP-family plugins (http, streamablehttp, sse). The other communication-protocol plugins were also inspected.

GraphQL plugin (utcp-gql). plugins/communicationprotocols/gql/src/utcpgql/gqlcommunicationprotocol.py still has the pre-fix check at line 43:

python def enforcehttpsorlocalhost(self, url: str) -> None: if not ( url.startswith("https://") or url.startswith("http://localhost") or url.startswith("http://127.0.0.1") ): raise ValueError("Security error: URL must use HTTPS or start with ...")

It is called on manualcalltemplate.url in registermanual (line 102) and on toolcalltemplate.url in calltool (line 181). The URL then goes into AIOHTTPTransport(url=...) and a live GraphQL request.

"http://127.0.0.1.attacker.example/graphql".startswith("http://127.0.0.1") is True, so the check passes. If the attacker controls DNS for attacker.example, that hostname resolves to any address they choose, including 169.254.169.254, 127.0.0.1, or an internal 192.168.x.x host, and the GraphQL client sends a plain-HTTP request there. http://localhost.evil.com/graphql behaves the same way. This is the exact prefix bypass CVE-2026-44661 was filed for.

WebSocket plugin (utcp-websocket). plugins/communicationprotocols/websocket/src/utcpwebsocket/websocketcommunicationprotocol.py. The module and class docstrings state:

"Security enforcement (WSS or localhost only)" "Enforces security by requiring WSS or localhost connections" "Security validation of connection URLs"

There is no such validation in the code. getconnection(), the only connection path (used by registermanual, calltool, and calltoolstreaming), calls:

python ws = await session.wsconnect(calltemplate.url, headers=headers, ...) # line 197

with no scheme or host check. Any URL in a WebSocketCallTemplate connects, including ws://169.254.169.254/, ws://127.0.0.1:<internal-port>/, or any internal hostname.

Credential exposure. Both plugins build connection headers in prepareheaders(), which attaches the configured auth: ApiKeyAuth as a header, BasicAuth as an Authorization: Basic header, and OAuth2Auth as an Authorization: Bearer token. When the bypass is used to force a plain-HTTP or plain-WS connection to an attacker-resolved host, those credentials are sent to the attacker.

This is the threat model CVE-2026-44661 already established: a UTCP client ingests tool manuals, and a malicious manual is attacker-influenced. The GraphQL and WebSocket plugins consume the same kind of call template, with the same url field, at the same trust level as the HTTP plugins that were fixed.

Affected packages: utcp-gql and utcp-websocket, both at the current release 1.1.0. Neither plugin has been modified since 2025-11-30, so both are unpatched on main.

PoC

The discrepancy is directly observable. With utcp-gql and utcp-http installed:

python from utcpgql.gqlcommunicationprotocol import GraphQLCommunicationProtocol from utcphttp.security import issecureurl

bypass = "http://127.0.0.1.attacker.example/graphql"

The fixed HTTP plugin rejects the bypass URL: print("utcphttp issecureurl:", issecureurl(bypass)) # -> False

The GraphQL plugin accepts it (no exception is raised): GraphQLCommunicationProtocol().enforcehttpsorlocalhost(bypass) print("utcpgql enforcehttpsorlocalhost: ACCEPTED")

End to end: a UTCP client that registers a manual declaring a GraphQL tool with url: "http://127.0.0.1.<attacker-domain>/graphql", where that domain resolves to an internal target, issues the request to that internal service. For WebSocket, a manual declaring a tool with url: "ws://169.254.169.254/" connects with no check at all. To confirm the request lands, point the URL at a listener you control on a host the client can reach but the attacker cannot, or at the client's own loopback.

Impact

Server-Side Request Forgery (CWE-918), the same class and trust boundary as CVE-2026-44661. An attacker who can get a UTCP client to register a malicious manual can:

- Make the client send GraphQL requests (GraphQL plugin) or open WebSocket connections (WebSocket plugin) to internal services and cloud metadata endpoints it would not otherwise reach. - Force plain-HTTP / plain-WS connections to an attacker-resolved host, defeating the "HTTPS or loopback only" guarantee both plugins are meant to provide. - Receive the call template's configured credentials (API key, Basic auth, OAuth Bearer token), because those headers are attached to the forged request.

Suggested fix. The correct helper already exists in the codebase. Promote issecureurl / ensuresecureurl from utcphttp into a shared module (or replicate the urlparse-based hostname logic), then replace enforcehttpsorlocalhost in the GraphQL plugin with it, and add an equivalent check in the WebSocket plugin's getconnection before wsconnect, adapted for the ws and wss schemes. This is the same centralization commit 5b16e43 already applied to the three HTTP plugins; it just needs to cover the remaining two transports.

Patched

- utcp-gql 1.1.1 replaces the broken enforcehttpsorlocalhost prefix check with hostname-based ensuresecureurl, applied at both registermanual and calltool. The underlying aiohttp session is also patched after connect() to refuse 3xx responses, closing the post-validation redirect SSRF on the GraphQL endpoint. - utcp-websocket 1.1.1 introduces ensuresecurewsurl (the WebSocket-scheme companion of ensuresecureurl) and enforces it in both the WebSocketCallTemplate Pydantic field validator and getconnection. wsconnect is called with allowredirects=False. The OAuth2 token-fetch path uses the same redirect-safe helper introduced in utcp-http 1.1.4.

Both plugins duplicate security.py from utcp-http (rather than adding a cross-plugin runtime dependency); keep the copies in sync when changing validator behaviour.

Upgrade to utcp-gql >= 1.1.1 and/or utcp-websocket >= 1.1.1. No workaround in earlier versions.

Other sources

A vulnerability was detected in universal-tool-calling-protocol python-utcp 1.1.0. This affects an unknown function of the component utcp-gql/utcp-websocket. Performing a manipulation results in server-side request forgery. The attack can be initiated remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

— MITRE

Affected Software

3 affected componentsFixes available
pypi/python-utcp=1.1.0
pip/utcp-websocket<=1.1.0
1.1.1
pip/utcp-gql<=1.1.0
1.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/utcp-websocket to a version that resolves this vulnerability.

    Fixed in 1.1.1
  2. Upgrade

    Upgrade pip/utcp-gql to a version that resolves this vulnerability.

    Fixed in 1.1.1
  3. Upgrade

    Upgrade universal-tool-calling-protocol python-utcp utcp-gql to a version that resolves this vulnerability.

    Fixed in 1.1.1
  4. Upgrade

    Upgrade universal-tool-calling-protocol python-utcp utcp-websocket to a version that resolves this vulnerability.

    Fixed in 1.1.1
  5. Configuration

    In utcp-gql, update GraphQLCommunicationProtocol()._enforce_https_or_localhost to use utcp_http/_security.py is_secure_url / ensure_secure_url (urlparse/hostname-based) instead of url.startswith prefix checks; ensure the enforcement runs in both register_manual (line 102: manual_call_template.url) and call_tool (line 181: tool_call_template.url) before creating AIOHTTPTransport(url=...).

    utcp-gql (GraphQLCommunicationProtocol) _enforce_https_or_localhost = Replace the pre-fix startswith prefix check with hostname-based ensure_secure_url / is_secure_url logic (from utcp_http/_security) applied to manual_call_template.url in register_manual and tool_call_template.url in call_tool
  6. Configuration

    In utcp-websocket, add an equivalent URL security check in the _get_connection() path before calling ws_connect (line 197), validating WebSocketCallTemplate.url using the WebSocket-scheme companion of ensure_secure_url (enforce_secure_ws_url / WSS-or-localhost); apply the check before ws_connect so that plain-WS URLs to attacker-resolved or internal hosts are rejected.

    utcp-websocket URL validation in _get_connection before ws_connect = Enforce security by requiring WSS or localhost only using ensure_secure_ws_url / hostname-based ensure_secure_url adapted for ws/wss schemes (reject attacker-forced ws:// URLs except true loopback)
  7. Configuration

    After applying URL validation for GraphQL (and analogously for WebSocket if applicable), ensure the session/transport is patched to refuse 3xx responses on the endpoint so redirect-based bypasses cannot lead to SSRF.

    GraphQLCommunicationProtocol/utcp-gql ws_connect/HTTP redirect behavior = Refuse 3xx responses after connection (post-validation redirect SSRF hardening)

Event History

Jun 15, 2026
CVE Published
via MITRE·02:30 AM
Data Sourced
via MITRE·02:30 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 AM
DescriptionSeverityWeakness
Aug 25, 2026
Advisory Published
via GitHub·03:52 PM
Data Sourced
via GitHub·03:52 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-12210?

CVE-2026-12210 has a medium severity rating of 6.3.

2

What type of vulnerability is CVE-2026-12210?

CVE-2026-12210 is a server-side request forgery (SSRF) vulnerability.

3

How do I fix CVE-2026-12210?

To fix CVE-2026-12210, update the universal-tool-calling-protocol python-utcp to the latest version recommended by the vendor.

4

What components are affected by CVE-2026-12210?

CVE-2026-12210 affects the utcp-gql/utcp-websocket component of the universal-tool-calling-protocol python-utcp.

5

Can CVE-2026-12210 be exploited remotely?

Yes, CVE-2026-12210 can be exploited remotely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203