CVE-2026-101060
Server‑side request forgery via unchecked redirects in python‑utcp < 1.1.4.
- CVSS 8.4
- CWE-918
- Input Validation and Sanitization
- Remote
python-utcp versions before 1.1.4 contain a server-side request forgery vulnerability in HttpCommunicationProtocol.call_tool that validates the initial tool URL but follows HTTP redirects without re-validating the target. Attackers controlling a tool endpoint can return a 302 redirect to internal services, allowing the UTCP client to reach cloud metadata endpoints or internal HTTP services and return their response bodies to the caller.
- CWE
- CWE-918
- CVSS base score
- 8.4
- 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
- python-utcp
- Fixed by upgrading
- Yes
Solution
Upgrade python‑utcp to version 1.1.4 (or later) where the SSRF issue is fixed.
Vulnerable code sample
import re
import requests
from urllib.parse import urlparse
class HttpCommunicationProtocol:
INTERNAL_PATTERN = re.compile(r'^https?://(?:127\.0\.0\.1|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|169\.254\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2[0-9]|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})')
def _is_external(self, url: str) -> bool:
return not self.INTERNAL_PATTERN.match(url)
# VULNERABLE: follows redirects without re‑validating target
def call_tool(self, tool_url: str) -> str:
if not self._is_external(tool_url):
raise ValueError("Disallowed internal URL")
resp = requests.get(tool_url) # redirects are followed automatically
resp.raise_for_status()
return resp.textPatched code sample
import re
import requests
from urllib.parse import urlparse
class HttpCommunicationProtocol:
INTERNAL_PATTERN = re.compile(r'^https?://(?:127\.0\.0\.1|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|169\.254\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2[0-9]|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})')
def _is_external(self, url: str) -> bool:
return not self.INTERNAL_PATTERN.match(url)
# FIX: re‑validate each redirect target
def call_tool(self, tool_url: str) -> str:
if not self._is_external(tool_url):
raise ValueError("Disallowed internal URL")
url = tool_url
while True:
resp = requests.get(url, allow_redirects=False)
resp.raise_for_status()
if resp.is_redirect:
next_url = resp.headers.get('Location')
if not next_url or not self._is_external(next_url):
raise ValueError("Redirect to disallowed URL")
url = next_url
continue
return resp.textPublished fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- Security updates (universal-tool-calling-protocol/python-utcp)
plugins/communication_protocols/gql/src/utcp_gql/gql_communication_protocol.py,plugins/communication_protocols/gql/src/utcp_gql/gql_communication_protocol.py · GraphQLCommunicationProtocol.call_tool,plugins/communication_protocols/gql/src/utcp_gql/gql_communication_protocol.py · GraphQLCommunicationProtocol.register_manual,plugins/communication_protocols/gql/src/utcp_gql/gql_communication_protocol.py · GraphQLCommunicationProtocol._handle_oauth2,plugins/communication_protocols/http/src/utcp_http/http_communication_protocol.py,plugins/communication_protocols/http/src/utcp_http/http_communication_protocol.py · HttpCommunicationProtocol.call_tool,plugins/communication_protocols/http/src/utcp_http/http_communication_protocol.py · HttpCommunicationProtocol.register_manual,plugins/communication_protocols/http/src/utcp_http/http_communication_protocol.py · HttpCommunicationProtocol._handle_oauth2,plugins/communication_protocols/http/src/utcp_http/openapi_converter.py,plugins/communication_protocols/http/src/utcp_http/openapi_converter.py · OpenApiConverter._create_auth_from_scheme,plugins/communication_protocols/http/src/utcp_http/sse_communication_protocol.py,plugins/communication_protocols/http/src/utcp_http/sse_communication_protocol.py · SseCommunicationProtocol.call_tool_streamingand 11 more
Cite this entry
@misc{vaitp:cve2026101060,
title = {{Server‑side request forgery via unchecked redirects in python‑utcp < 1.1.4.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-101060},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-101060/}}
}
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 ::
