Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-55096 Overview
CVE-2026-55096 is a Server-Side Request Forgery (SSRF) vulnerability in fast-mcp-telegram, a Telegram Model Context Protocol (MCP) server. Versions prior to 30.1 accept a list of HTTP/HTTPS URLs in the send_message and send_message_to_phone tools. The server downloads those URLs and attaches them to outgoing Telegram messages. The URL security guard _validate_url_security inspects only the literal hostname string and never resolves DNS. An attacker can supply a hostname that resolves to a loopback, private, or link-local address, bypass the denylist, and receive the fetched body as a Telegram attachment. The flaw is tracked under [CWE-184: Incomplete List of Disallowed Inputs].
Critical Impact
Authenticated attackers can exfiltrate internal HTTP resources, including cloud metadata endpoints, by exploiting a DNS-based SSRF filter bypass.
Affected Products
- fast-mcp-telegram versions prior to 0.30.1
- Deployments using the send_message MCP tool
- Deployments using the send_message_to_phone MCP tool
Discovery Timeline
- 2026-09-28 - CVE-2026-55096 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-55096
Vulnerability Analysis
The fast-mcp-telegram server exposes MCP tools that accept URLs, download the referenced content, and attach the response body to Telegram messages. Before fetching, the server calls _validate_url_security to enforce SSRF protections controlled by block_private_ips=True and allow_http_urls=False. The validation logic parses the URL and checks the hostname string against a denylist of IP literals and known reserved ranges. It never performs DNS resolution.
After the check passes, the server invokes httpx.AsyncClient.get, which performs its own DNS lookup at request time. An attacker who controls a public DNS record can point a hostname at 127.0.0.1, 169.254.169.254, or any RFC1918 address. The guard sees an arbitrary hostname string and permits the request. The client then resolves and fetches from the internal address. Because the response body is returned as a Telegram file attachment, the SSRF is a full-read exfiltration primitive rather than a blind request.
Root Cause
The root cause is a time-of-check to time-of-use gap between hostname validation and network fetch. The denylist reasons over the URL string alone, so any input that is not a literal disallowed IP passes. The subsequent HTTP client performs an independent DNS resolution that the guard never observes.
Attack Vector
An authenticated MCP client sends a send_message or send_message_to_phone request with a files list containing an attacker-controlled URL. The hostname resolves to an internal address such as a cloud instance metadata service. The server fetches the URL and forwards the response body to the specified Telegram chat, delivering internal content to the attacker.
# Security patch in src/tools/messages/security.py
import contextlib
import ipaddress
+import socket
from typing import Any
from src.config.server_config import ServerMode, cfg
The patch imports socket so that _validate_url_security can resolve the hostname to its actual IP address before applying the private-range denylist, closing the DNS rebinding gap. Source: GitHub Commit e6b3032.
Detection Methods for CVE-2026-55096
Indicators of Compromise
- Outbound DNS queries from the MCP host resolving public hostnames to loopback, RFC1918, or link-local addresses.
- HTTP requests originating from the fast-mcp-telegram process to 127.0.0.1, 169.254.169.254, or internal service ranges.
- Telegram outbound file attachments containing internal HTTP response bodies, JSON metadata, or cloud IAM credentials.
Detection Strategies
- Alert on process-level network connections where fast-mcp-telegram connects to private, loopback, or metadata IP ranges.
- Inspect MCP request logs for send_message or send_message_to_phone calls with files entries whose hostnames resolve to non-public addresses.
- Correlate DNS answers with subsequent HTTP fetches to identify hostnames that resolve to reserved address space.
Monitoring Recommendations
- Enable egress logging on the MCP server and restrict outbound traffic through an authenticated proxy that enforces destination allowlists.
- Monitor cloud audit logs for unexpected access to instance metadata endpoints from the MCP host identity.
- Capture and retain full MCP tool invocation payloads to support post-incident analysis of URL parameters.
How to Mitigate CVE-2026-55096
Immediate Actions Required
- Upgrade fast-mcp-telegram to version 0.30.1 or later, which resolves DNS before applying the SSRF denylist.
- Rotate any Telegram bot tokens, cloud credentials, or session secrets that may have been retrievable through the vulnerable host.
- Audit Telegram message history for unexpected file attachments sent by the MCP server since deployment.
Patch Information
The fix is available in fast-mcp-telegram release 0.30.1. Full technical details are published in GitHub Security Advisory GHSA-xr72-j7vj-vp7g. The corrective commit adds DNS resolution to _validate_url_security in src/tools/messages/security.py.
Workarounds
- Block outbound HTTP requests from the MCP host to private, loopback, and link-local IP ranges at the network layer.
- Deploy an egress proxy that resolves and validates destination addresses independently of the application.
- Restrict access to the send_message and send_message_to_phone tools to trusted MCP clients until the upgrade is applied.
# Example iptables rules blocking SSRF-relevant destinations from the MCP host
iptables -A OUTPUT -m owner --uid-owner mcp -d 127.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner mcp -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner mcp -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner mcp -d 192.168.0.0/16 -j REJECT
iptables -A OUTPUT -m owner --uid-owner mcp -d 169.254.0.0/16 -j REJECT
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

