GHSA-v9m3-wfh8-5646: SSRF

Published Sep 22, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
pip/mcp-atlassian<0.22.0
0.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/mcp-atlassian to a version that resolves this vulnerability.

    Fixed in 0.22.0
  2. Compensating control

    In src/mcp_atlassian/jira/users.py, change JiraUserMixin._lookup_user_by_permissions to issue the request through the SSRF-hooked self.jira._session.get instead of the module-level requests.get; audit remaining bare requests.* or httpx.* calls that use self.config.url and route them through the hooked session.

Event History

Sep 22, 2026
Advisory Published
via GitHub·08:36 PM
Data Sourced
via GitHub·08:36 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to unauthenticated exploitation?

The described unauthenticated attack applies to HTTP or multi-tenant transport mode when it binds to 0.0.0.0 without credentials. In that configuration, an attacker can reach the service remotely and supply the relevant Jira base URL header.

2

What does an attacker need to exploit this issue?

The attacker needs to control a publicly reachable server and configure it to redirect requests to an internal address. The initial public URL must pass the existing URL validation; the redirect then bypasses redirect validation on the affected request path.

3

What internal access can the attacker obtain?

The issue results in a blind server-side request to an arbitrary internal host and port. The provided information does not indicate that the attacker can read the response content.

4

Why do the existing SSRF protections not prevent this path?

The affected Jira user-permission lookup uses the module-level requests.get rather than the Jira client's hooked HTTP session. As a result, the redirect-validation hook is not applied, even though the initial URL header is validated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203