CVE-2026-124503: MCP Atlassian upload path guard uses the process working directory, so remote deployments started from / let callers exfiltrate any file (fixed 0.24.1)
In mcp-atlassian before 0.24.1, the path check that confines confluence_upload_attachment uses the process working directory as its boundary. HTTP/SSE deployments started by a systemd unit without WorkingDirectory= run from / (or $HOME for user units), so an authenticated remote MCP caller can upload any file the server can read, such as /proc/self/environ with the operator's Atlassian tokens, .env files or SSH keys, to their own Confluence. Upgrade to 0.24.1.
What it is
validate_safe_path() defaults base_dir to os.getcwd(). It correctly rejects ../ and symlink escapes, but when the cwd is / every absolute path passes.
confluence_upload_attachment passes file_path through that check, opens the file and uploads its bytes to Confluence, so the caller gets the file's contents.
Affected: remote multi-user transports (sse, streamable-http) launched from a wide working directory. The official Docker image (WORKDIR /app) and local stdio use are not affected. The attacker is an authenticated MCP caller, or anyone if ALLOW_GLOBAL_CRED_FALLBACK=true.
Same root cause as the download-side bypass CVE-2026-77271. Fixed in 0.24.1 (8 Nov 2026), which keeps tool file paths inside an explicit directory; that release also fixed a batch of other privately reported issues. Reported by LeoWSY-hashblue, aaronott and beausea.
How to check
- Run pip show mcp-atlassian (or check your uvx/docker tag); versions below 0.24.1 are affected.
- If you run it with --transport sse or streamable-http, check the service's working directory (systemctl show <unit> -p WorkingDirectory, or ls -l /proc/<pid>/cwd).
How to fix
- Upgrade to mcp-atlassian 0.24.1 or later.
- Set an explicit, narrow WorkingDirectory= for systemd units, or use the official Docker image; if a remote deployment ran from / or $HOME, rotate the Atlassian tokens and other secrets the process could read.
pip show mcp-atlassian | grep -i ^version
ls -l /proc/$(pgrep -f mcp-atlassian | head -1)/cwd
uvx [email protected] --help >/dev/null