{"id":"CVE-2026-44661","aliases":["CVE-2026-44661","GHSA-39j6-4867-gg4w","PYSEC-2026-3396"],"related":[],"kind":"vulnerability","state":"published","title":"python-utcp: SSRF via attacker-controlled OpenAPI servers[0].url in HTTP communication protocol","summary":"python-utcp is the python implementation of UTCP. Prior to 1.1.3, the utcp-http plugin is vulnerable to a blind Server-Side Request Forgery (SSRF) caused by a trust-boundary inconsistency between manual discovery and tool invocation. register_manual() validates the discovery URL against an HTTPS / loopback allowlist, but call_tool() and call_tool_streaming() reuse the resolved tool_call_template.url directly without revalidating, and the OpenAPI converter blindly trusts whatever servers[0].url an attacker-hosted spec declares. An attacker who hosts a malicious OpenAPI spec on a legitimate HTTPS endpoint can declare e.g. servers: [{ url: \"http://127.0.0.1:9090\" }] or servers: [{ url: \"http://169.254.169.254\" }]; the OpenAPI converter then produces tools whose URL points at internal services on the agent host. All three HTTP-class protocols (utcp_http.http, utcp_http.streamable_http, utcp_http.sse) shared the same gap. This vulnerability is fixed in 1.1.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"python-utcp is the python implementation of UTCP. Prior to 1.1.3, the utcp-http plugin is vulnerable to a blind Server-Side Request Forgery (SSRF) caused by a trust-boundary inconsistency between manual discovery and tool invocation. register_manual() validates the discovery URL against an HTTPS / loopback allowlist, but call_tool() and call_tool_streaming() reuse the resolved tool_call_template.url directly without revalidating, and the OpenAPI converter blindly trusts whatever servers[0].url an attacker-hosted spec declares. An attacker who hosts a malicious OpenAPI spec on a legitimate HTTPS endpoint can declare e.g. servers: [{ url: \"http://127.0.0.1:9090\" }] or servers: [{ url: \"http://169.254.169.254\" }]; the OpenAPI converter then produces tools whose URL points at internal services on the agent host. All three HTTP-class protocols (utcp_http.http, utcp_http.streamable_http, utcp_http.sse) shared the same gap. This vulnerability is fixed in 1.1.3.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe `utcp-http` plugin is vulnerable to a blind Server-Side Request Forgery (SSRF) caused by a trust-boundary inconsistency between manual discovery and tool invocation. `register_manual()` validates the discovery URL against an HTTPS / loopback allowlist, but `call_tool()` and `call_tool_streaming()` reuse the resolved `tool_call_template.url` directly without revalidating. An attacker who hosts a malicious OpenAPI spec on a legitimate HTTPS endpoint can declare `servers: [{ url: \"http://169.254.169.254\" }]` (or any internal address) in the spec; the OpenAPI converter blindly trusts that value and the tool becomes a blind SSRF primitive that exposes cloud metadata, internal services, and other firewalled-only endpoints to the LLM caller.\n\nAll three HTTP-class protocols (`utcp_http.http`, `utcp_http.streamable_http`, `utcp_http.sse`) shared the same gap, plus a separate prefix-bypass: the previous `startswith(\"http://localhost\")` check let URLs like `http://localhost.evil.com` through.\n\n## Impact\n\nA remote attacker who can convince the agent (via the LLM context, prompt injection, or a tool-discovery surface) to register their HTTPS OpenAPI URL can:\n- Map internal networks behind the agent.\n- Read AWS/GCP IAM credentials from cloud metadata endpoints (`http://169.254.169.254`, `http://metadata.google.internal`).\n- Reach unauthenticated internal services (Elasticsearch, Redis HTTP, internal admin panels).\n- Have responses returned to the LLM, which combined with prompt injection enables exfiltration back to the attacker.\n\n## Affected versions\n\n`utcp-http <= 1.1.1`.\n\n## Patched versions\n\n`utcp-http 1.1.2`.\n\n## Patch\n\nCommit: 5b16e43 on `dev`.\n\n- New `utcp_http._security` helper: `ensure_secure_url(url, context=...)` parses the URL with `urllib.parse.urlparse` and validates the hostname (not a string prefix) against the loopback set, closing the `localhost.evil.com` bypass.\n- All three protocols call `ensure_secure_url(url, context=\"manual discovery\")` in `register_manual` (replacing the duplicated prefix check) and `ensure_secure_url(url, context=\"tool invocation\")` immediately before each aiohttp request in `call_tool` / `call_tool_streaming`. The runtime check is the actual SSRF fix.\n- New regression tests in `test_security.py` pin the accept/reject decisions and explicitly cover the historical bypass cases.\n\n## Workarounds\n\nFor users who cannot upgrade immediately:\n- Refuse to call `register_manual` with any URL controlled by an untrusted party, even over HTTPS.\n- Restrict outbound network access from the host running the agent so internal addresses (RFC1918, 169.254.0.0/16, loopback for cloud metadata) are unreachable.\n\n## Credit\n\nDiscovered and reported by [@YLChen-007](https://github.com/YLChen-007) in #83.","format":"markdown","source":"ghsa"},{"lang":"es","text":"python-utcp es la implementación en python de UTCP. Antes de la versión 1.1.3, el plugin utcp-http es vulnerable a una falsificación de petición del lado del servidor (SSRF) ciega causada por una inconsistencia en el límite de confianza entre el descubrimiento manual y la invocación de herramientas. register_manual() valida la URL de descubrimiento contra una lista de permitidos de HTTPS / loopback, pero call_tool() y call_tool_streaming() reutilizan la URL tool_call_template.url resuelta directamente sin revalidar, y el conversor OpenAPI confía ciegamente en cualquier servers[0].url que declare una especificación alojada por un atacante. Un atacante que aloja una especificación OpenAPI maliciosa en un endpoint HTTPS legítimo puede declarar, por ejemplo, servers: [{ url: ’http://127.0.0.1:9090’ }] o servers: [{ url: ’http://169.254.169.254’ }]; el conversor OpenAPI produce entonces herramientas cuya URL apunta a servicios internos en el host del agente. Los tres protocolos de clase HTTP (utcp_http.http, utcp_http.streamable_http, utcp_http.sse) compartían la misma brecha. Esta vulnerabilidad está corregida en la versión 1.1.3.","source":"nvd"}],"published":"2026-05-07T22:32:54.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 1.1.2","status":"affected"}],"vendor":"universal-tool-calling-protocol","product":"python-utcp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.2"}],"ecosystem":"PyPI","package":"utcp-http","purl":"pkg:pypi/utcp-http","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.2"}],"ecosystem":"PyPI","package":"utcp-http","purl":"pkg:pypi/utcp-http","source":"pysec"}],"references":[{"url":"https://github.com/universal-tool-calling-protocol/python-utcp/security/advisories/GHSA-39j6-4867-gg4w","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44661","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/universal-tool-calling-protocol/python-utcp","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/utcp-http","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-39j6-4867-gg4w","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-15T11:24:39.658Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44661","url":"https://www.cve.org/CVERecord?id=CVE-2026-44661","licence":"CVE Terms of Use","modified":"2026-05-15T11:25:09.347Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-39j6-4867-gg4w","url":"https://github.com/advisories/GHSA-39j6-4867-gg4w","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:38.464Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44661","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44661","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3396","url":"https://osv.dev/vulnerability/PYSEC-2026-3396","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:27.692Z"}],"updatedAt":"2026-11-25T22:59:21.787Z","epss":{"score":0.00175,"percentile":0.07354,"date":"2026-12-01T12:00:22.000Z"}}