CVE-2026-77249: MCP Atlassian: Incomplete fix for CVE-2026-27826: redirect-based SSRF via unhooked requests session in Jira user-permission lookup
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, JiraUserMixin.lookupuserbypermissions uses the module-level requests.get function instead of the fetcher's protected session. A caller-controlled public Jira URL can redirect that unhooked request to an internal address, bypassing the redirect checks added for CVE-2026-27826. The advisory traces the vulnerable input and processing flow through JiraUserMixin.lookupuserbypermissions, requests.get, self.jira.session.get, and makessrfsafehook, which identify the affected entry points, controls, and code paths. This issue is fixed in version 0.22.0.
Other sources
Summary
The fix for the SSRF vulnerability tracked as GHSA-7r34-79r5-rcc9 / CVE-2026-27826 is incomplete. That fix added two defenses: validateurlforssrf() on the per-request X-Atlassian-Jira-Url / X-Atlassian-Confluence-Url headers (blocking a directly-internal base URL), and a redirect-validation hook (makessrfsafehook) attached to the fetcher's HTTP session so that an attacker-controlled public host cannot redirect outbound requests to an internal address.
However, one outbound request path does not go through the hooked session. JiraUserMixin.lookupuserbypermissions issues its request with the module-level requests.get instead of self.jira.session.get, so the redirect-validation hook never runs for it. An unauthenticated attacker (in the HTTP / multi-tenant transport mode that binds 0.0.0.0 with no credentials) can therefore set a public base URL that passes validateurlforssrf(), then have their own server return an HTTP redirect to an internal address. The bare requests.get follows that redirect with no validation, resulting in a blind server-side request to an arbitrary internal host and port.
Affected component
src/mcpatlassian/jira/users.py, method lookupuserbypermissions (the requests.get(...) call):
url = f"{self.config.url}/rest/api/2/user/permission/search" params = {"query": username, "permissions": "BROWSE"} ... response = requests.get( # module-level requests, NOT self.jira.session url, params=params, auth=auth, headers=headers, verify=self.config.sslverify, )
For comparison, the equivalent non-standard-endpoint call in src/mcpatlassian/jira/development.py correctly uses the hooked session (self.jira.session.get(...)), and the SSRF redirect hook is attached only to that session in src/mcpatlassian/servers/dependencies.py (getsession=lambda f: f.jira.session). The bare requests.get in users.py is the one outbound path the hook does not cover.
Details — why the existing defenses do not apply here
1. self.config.url is attacker-controlled in the header-PAT branch of getfetcher (dependencies.py): headerconfig = spec.configclass(url=urlheaderval, authtype="pat", personaltoken=tokenheaderval, ...). 2. The middleware validates that header URL with validateurlforssrf() before storing it, so it must resolve to a public address. The attacker simply points it at a public server they control — this passes validation. 3. Credential validation (createandvalidate → spec.validatefn) runs against that same attacker-controlled server, so it returns success and no real Atlassian credentials are required. 4. The redirect-validation hook is attached to f.jira.session. lookupuserbypermissions does not use that session — it uses bare requests.get, which follows redirects (allowredirects=True by default) with no SSRF check.
Proof of Concept
Preconditions: the server is running in HTTP transport (streamable-http or sse) multi-tenant mode, as described in the GHSA-7r34-79r5-rcc9 advisory (binds 0.0.0.0, per-request header auth, no server-side credentials).
1. Attacker stands up a public HTTP server http://attacker.example that: - responds to GET /rest/api/2/user/search (and the atlassian client's user-find call) with 200 [] — an empty user list, forcing the direct-lookup fallthrough; - responds to GET /rest/api/2/user/permission/search with 302 Location: http://169.254.169.254/latest/meta-data/ (or any internal host:port). 2. Attacker sends a tool call to the MCP HTTP endpoint with headers: - X-Atlassian-Jira-Url: http://attacker.example - X-Atlassian-Jira-Personal-Token: anything and invokes a tool that resolves an assignee — e.g. jiracreateissue / jiraupdateissue with assignee set to a value that the direct lookup cannot match. 3. Flow: getaccountid → lookupuserdirectly returns None (attacker returned []) → lookupuserbypermissions → requests.get("http://attacker.example/rest/api/2/user/permission/search?...") → attacker server returns 302 → bare requests follows the redirect to http://169.254.169.254/....
The server makes an outbound GET to the internal target, confirming SSRF.
Impact
Blind, unauthenticated server-side request forgery from the mcp-atlassian host. An attacker who can reach the HTTP transport endpoint can cause the server to issue GET requests to arbitrary internal hosts and ports (internal service reachability and port discovery, triggering of internal GET-actuated endpoints, reachability of cloud metadata endpoints). The response body is not reflected to the attacker except in the narrow case where an internal service returns a JSON object shaped like {"users": [...]}, so this is primarily a blind SSRF: weaker than the original CVE-2026-27826 (no general internal data exfiltration), but the redirect-based internal-reachability that GHSA-7r34-79r5-rcc9 intended to close remains exploitable through this code path in the latest release (v0.21.1).
Suggested Remediation
Route the request through the hooked session instead of the module-level requests, mirroring development.py:
response = self.jira.session.get( url, params=params, verify=self.config.sslverify, )
(The session already carries the appropriate authentication, so the manual auth / Authorization handling can be dropped.) More generally, auditing for any remaining bare requests. / httpx. calls that use self.config.url and routing them through the SSRF-hooked session would prevent recurrence.
Coordinated Disclosure
This appears to be an incomplete fix for GHSA-7r34-79r5-rcc9 (CVE-2026-27826). If you agree, I would kindly ask you to consider requesting a CVE ID for this residual instance through this repository's Security Advisory "Request CVE ID" workflow once confirmed, so that downstream users and distributions can track the additional fix. The severity here is lower than the parent advisory — it is a blind, redirect-only SSRF gated on the HTTP multi-tenant deployment mode — so a Medium rating seems appropriate, and I defer to your judgment on the final score. Thank you very much for your time and for your work on this project.
— GitHub
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
Which deployments are affected?
MCP Atlassian deployments running a version prior to 0.22.0 are affected where Jira user-permission lookup can process a caller-controlled public Jira URL.
What does an attacker need to exploit this issue?
An attacker needs to supply or control a public Jira URL that redirects to an internal address. The vulnerable permission-lookup path follows that redirect through an unprotected module-level requests.get call.
Are existing SSRF redirect protections sufficient?
No. The affected lookup path does not use the fetcher's protected session, so it bypasses the redirect checks implemented in _make_ssrf_safe_hook for the earlier issue.
How can this be remediated?
Upgrade MCP Atlassian to version 0.22.0, which fixes the issue.