CVE-2026-101058
UTCP manual can force loopback SSRF by declaring localhost URLs from remote origins.
- CVSS 7.1
- CWE-918
- Input Validation and Sanitization
- Remote
python-utcp (pip package utcp-http) before 1.1.12 does not verify whether tool URLs declared in a hand-written UTCP manual point at the agent's own loopback interface when that manual is discovered from a remote, non-loopback origin. Because ensure_secure_url intentionally permits loopback HTTP for local development and native manuals bypassed the loopback check performed by the OpenAPI converter, an attacker who can serve a UTCP manual that a victim registers can cause the client to issue requests to services bound only to 127.0.0.1 on the victim host and have the response bodies returned to the caller (server-side request forgery). The http, sse and streamable_http protocols are all affected. Reach is limited to loopback, and exploitation further requires a loopback service that answers unauthenticated requests with useful data. Fixed in utcp-http 1.1.12, which rejects manuals fetched from a non-loopback origin that declare loopback tool URLs, keyed off the final post-redirect discovery URL.
- CWE
- CWE-918
- CVSS base score
- 7.1
- Published
- 2026-09-27
- OWASP
- A10 Server-Side Request Forgery (SSRF)
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Direct Object References (IDOR)
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- utcp-http
- Fixed by upgrading
- Yes
Solution
Upgrade the utcp-http package to version 1.1.12 or later.
Vulnerable code sample
import urllib.parse
from utcp_http import Manual, Client, ensure_secure_url
def load_manual(manual_url: str) -> Manual:
# VULNERABLE: does not reject loopback tool URLs in manuals fetched from remote origins
manual = Manual.fetch(manual_url) # discovers manual, may be remote
for tool in manual.tools:
# ensure_secure_url permits loopback for local development
tool.url = ensure_secure_url(tool.url)
return manual
def use_tool(manual: Manual):
client = Client()
for tool in manual.tools:
response = client.request(tool.url, method="GET")
# process response ...Patched code sample
import urllib.parse
from utcp_http import Manual, Client, ensure_secure_url
def load_manual(manual_url: str) -> Manual:
# FIX: reject loopback tool URLs when manual is fetched from a non‑loopback origin
manual = Manual.fetch(manual_url) # discovers manual, may be remote
origin_host = urllib.parse.urlparse(manual_url).hostname
for tool in manual.tools:
parsed = urllib.parse.urlparse(tool.url)
if origin_host not in ("127.0.0.1", "localhost") and parsed.hostname in ("127.0.0.1", "localhost"):
raise ValueError("Loopback tool URL not allowed from remote manual")
tool.url = ensure_secure_url(tool.url)
return manual
def use_tool(manual: Manual):
client = Client()
for tool in manual.tools:
response = client.request(tool.url, method="GET")
# process response ...Cite this entry
@misc{vaitp:cve2026101058,
title = {{UTCP manual can force loopback SSRF by declaring localhost URLs from remote origins.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-101058},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-101058/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
