Jul 10, 2026·5 min read·35 visits
Unauthenticated users can bypass SSRF protections via DNS rebinding (TOCTOU) in mcp-atlassian, gaining access to internal endpoints and cloud provider metadata.
A DNS-rebinding Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the mcp-atlassian server before version 0.17.0. The server processes unauthenticated client-supplied URLs via custom headers, validating the destination IP but failing to pin the resolved address before connecting. This allows remote adjacent-network attackers to achieve Server-Side Request Forgery (SSRF) and access restricted resources or cloud metadata services.
The mcp-atlassian server is a Model Context Protocol (MCP) server used to interface with Atlassian applications, including Jira and Confluence. In versions prior to 0.17.0, the application exposes an HTTP/SSE interface that processes unauthenticated incoming requests. When managing connections, the server allows clients to dynamically specify target Atlassian instances via custom HTTP headers, creating an expansive attack surface.\n\nSpecifically, the server reads the target hostnames from the X-Atlassian-Jira-Url and X-Atlassian-Confluence-Url headers. Because these requests can be initiated by unauthenticated users, the design introduces risks of arbitrary outbound network requests. This vulnerability class falls under CWE-918 (Server-Side Request Forgery) combined with a CWE-367 (Time-of-Check to Time-of-Use) race condition, allowing adjacent network actors to target internal nodes.
The vulnerability arises from a flawed validation routine designed to block private IP addresses. In an attempt to secure custom URLs, the developers implemented validate_url_for_ssrf in src/mcp_atlassian/utils/urls.py. This utility resolves the client-supplied hostname and checks if any resolved IP address belongs to non-global ranges (e.g., private subnets, loopback, or link-local addresses).\n\nHowever, the code suffers from a classic Time-of-Check to Time-of-Use (TOCTOU) vulnerability. The validation step performs DNS resolution and, if successful, allows execution to proceed. Crucially, the validated IP address is discarded, and the application subsequently passes the original hostname string to the Python requests library. If an attacker controls the authoritative DNS server for the target domain, they can configure it to return a public IP during the validation phase, and then immediately return a private IP (such as 169.254.169.254 or 127.0.0.1) during the connection phase.\n\nAdditionally, the redirect protection implemented as a response hook is defective. The hook intercepts responses and checks response.is_redirect. However, in the standard requests library, redirects are followed internally by default, meaning that the response hook is only executed on the final resolved object. If an intermediate redirect leads to a non-redirect (e.g., a 200 OK on a private resource), the hook fails to trigger, leaving the system fully vulnerable to redirect-based bypasses.
Let us analyze the vulnerable validation logic from src/mcp_atlassian/utils/urls.py in detail. The original DNS resolution check loops through the resolved sockets, but never pins the resulting address:\n\npython\n# Vulnerable DNS validation routine\ndef _check_dns_resolution(hostname: str) -> str | None:\n try:\n results = socket.getaddrinfo(hostname, None)\n except socket.gaierror:\n return f\"DNS resolution failed for {hostname}\"\n\n for _family, _type, _proto, _canonname, sockaddr in results:\n ip_str = sockaddr[0]\n addr = ipaddress.ip_address(ip_str)\n if not addr.is_global:\n return f\"DNS for {hostname} resolves to non-global IP: {ip_str}\"\n return None\n\n\nEven if _check_dns_resolution returns None (indicating a safe IP), the application goes on to make an independent request using the unpinned URL. The diagram below illustrates this TOCTOU flow:\n\nmermaid\ngraph LR\n Client[Client Request] --> Validation[validate_url_for_ssrf]\n Validation -->|DNS Query 1: Public IP| Safe[Validation Passes]\n Safe --> Outbound[requests.get]\n Outbound -->|DNS Query 2: Private IP| Target[Private Resource / IMDS]\n\n\nFurthermore, the redirect validation mechanism utilizes a post-response hook that is fundamentally bypassed because intermediate redirects are processed natively inside requests prior to the hook's invocation.
An attacker can achieve full Server-Side Request Forgery (SSRF) bypass using standard DNS rebinding techniques. The attack requires deploying a custom DNS server that answers requests dynamically with a very low Time-to-Live (TTL) of 0 seconds. On the first query, the DNS server returns a benign global IP address (e.g., 104.192.141.1). On the second query, the DNS server returns a local or loopback address (e.g., 169.254.169.254).\n\nThe exploitation sequence is as follows:\n\n1. The attacker establishes an unauthenticated session with the MCP server by sending an initial handshake to /mcp.\n\n2. The attacker triggers a tool execution such as jira_get_issue while providing custom headers: X-Atlassian-Jira-Url: http://rebind.attacker.com and X-Atlassian-Jira-Personal-Token: testing.\n\n3. During the validation phase, the host machine queries rebind.attacker.com, receives 104.192.141.1, and validates the URL as safe.\n\n4. When mcp-atlassian initiates the outbound HTTP connection, it sends another DNS query due to the expired TTL, resolving rebind.attacker.com to 169.254.169.254.\n\n5. The server connects to the AWS Instance Metadata Service, retrieving sensitive credentials or IAM role policies.
The successful exploitation of CVE-2026-27826 allows unauthenticated, remote attackers to perform arbitrary HTTP requests from the context of the hosting server. Depending on where the mcp-atlassian server is deployed, this capability can lead to severe compromises.\n\nIn cloud environments (such as AWS, Google Cloud, or Azure), the attacker can access the cloud metadata service to retrieve temporary IAM role credentials, resulting in a full cloud account takeover. In local or enterprise networks, the vulnerability enables internal port scanning, discovery of microservices, and interactions with unauthenticated administrative endpoints (such as Redis, Consul, or local databases).\n\nThe CVSS v3.1 base score of 8.2 is classified as High severity. The score reflects a high confidentiality impact and low integrity impact, with the scope changed because the vulnerability in mcp-atlassian is leveraged to compromise adjacent systems on the internal network.
The primary remediation for this vulnerability is to upgrade mcp-atlassian to version 0.17.0 or higher, which properly addresses the DNS rebinding flaw and enforces strict validation.\n\nIf upgrading immediately is not possible, the following mitigations must be implemented:\n\n1. Define Allowed Domains: Set the environment variable MCP_ALLOWED_URL_DOMAINS to restrict the target domains to trusted Atlassian instances (e.g., yourorg.atlassian.net).\n\n2. Network Filtering: Implement host-level firewall rules using iptables to block the server process from initiating outgoing connections to local IP addresses and the link-local metadata address (169.254.169.254).\n\n3. Isolate Deployment: Place the MCP server in a private security group with no outbound access to other internal network resources.
| Product | Affected Versions | Fixed Version |
|---|---|---|
mcp-atlassian sooperset | < 0.17.0 | 0.17.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-918, CWE-367 |
| Attack Vector | Adjacent Network (AV:A) |
| CVSS Score | 8.2 |
| EPSS Score | 14.96% |
| Exploit Status | Proof of Concept / Active |
| CISA KEV Status | Not Listed |
An incomplete Server-Side Request Forgery (SSRF) validation check in Indico prior to version 3.3.13 allows authenticated event organizers to bypass outbound network restrictions. By utilizing backslash characters within crafted URLs, attackers can exploit a parser differential between the application's validator and the downstream HTTP client library to access internal network resources.
CVE-2026-107717 represents a critical prompt boundary bypass and chat role injection vulnerability in the Banks Python package (versions prior to 2.5.0). The library parses generated template outputs line-by-line, attempting to validate each segment as a JSON-serialized ChatMessage object without validating the source boundaries of the text. If an application integrates user input directly into a prompt template, a remote, unauthenticated attacker can supply multi-line inputs with structured JSON payloads. This input is then parsed as high-privilege system instructions or tool execution responses, completely hijacking downstream Large Language Model behavior.
Improper pathname limitation and link resolution (CWE-22 and CWE-59) in the banks library prior to version 2.5.1 allow local attackers to read or write arbitrary files via crafted symbolic links in the prompt directory registry.
Improper validation of dynamic class resolution within Hazelcast's Zero Config Compact Serialization allows unauthenticated clients to trigger reflective class instantiation. This flaw can be exploited to read arbitrary JVM heap or off-heap memory, crash cluster nodes, or achieve arbitrary code execution under specific classpath conditions. This issue is resolved in Hazelcast versions 5.4.5, 5.5.10, 5.6.1, and 5.7.0.
An authentication bypass vulnerability in NearForm's fast-jwt before version 6.3.4 allows attackers to replay expired tokens due to an error in the verifier's cache expiration logic. When caching is enabled, the cache TTL defaults to 10 minutes instead of honoring the token's exp claim if the token lacks an iat claim.
CVE-2026-61427 is a critical authentication bypass and improper input validation vulnerability within the Model Context Protocol (MCP) HTTP-stream server of PraisonAI. In versions prior to 4.6.78, the server lacks authentication by default and forwards client messages directly to Python tool handlers without input validation. When bound to non-localhost interfaces, this permits unauthenticated remote attackers to perform unauthorized administrative operations and execute tools.