CVE-2026-77269: MCP Atlassian: Path traversal in upload_attachment allows arbitrary file read (incomplete fix for CVE-2026-27825)

Published Sep 22, 2026
·
Updated

Summary

The confluenceuploadattachment and confluenceuploadattachments MCP tools accept a filepath parameter and do not validate that the path is confined to an allowed directory before opening the file. An attacker who can call these tools can read any file accessible to the MCP server process (SSH keys, .env files, API credentials) and exfiltrate it by uploading it to Confluence.

Note: The Jira uploadattachment mixin method in jira/attachments.py has the same missing validation, but it is NOT registered as an MCP tool in servers/jira.py and is therefore not currently reachable via MCP. It should still be patched to prevent future exposure if Jira upload tools are added.

This is an incomplete fix for CVE-2026-27825. That CVE was patched by adding validatesafepath() to download operations (v0.17.0). The same protection was not applied to upload operations.

Details

validatesafepath() is imported in both confluence/attachments.py and jira/attachments.py and is correctly called in all download functions. It is absent from the Confluence upload functions (which are exposed as MCP tools) and from the Jira upload mixin methods (which are not currently registered as MCP tools but should still be patched).

Download (protected — correctly patched): python confluence/attachments.py:222-223 validatesafepath(targetpath) # resolves symlinks + checks isrelativeto(cwd)

Upload (vulnerable — not patched): python confluence/attachments.py:64-79 — NO validatesafepath() call if not os.path.isabs(filepath): filepath = os.path.abspath(filepath) # normalizes but does NOT restrict ... files = {"file": (filename, open(filepath, "rb"))} # opens arbitrary file

Same pattern in jira/attachments.py:386.

Proof of Concept

python Call via MCP client await session.calltool("confluenceuploadattachment", { "contentid": "12345", "filepath": "/home/user/.ssh/idrsa" # absolute path — no traversal needed }) SSH private key is now a Confluence attachment Retrieve via: confluencedownloadattachment or Confluence UI

Impact

Arbitrary file read from the server filesystem. High-value targets: SSH private keys, .env files, AWS/GCP credentials, database configuration, source code.

Fix

Add validatesafepath(filepath) call in confluence/attachments.py:uploadattachment() (reachable via MCP) and jira/attachments.py:uploadattachment() (not currently reachable via MCP, but should be patched preventively), consistent with the existing download protection. No changes to validatesafepath() itself are needed.

python Add after os.path.abspath() call: try: validatesafepath(filepath) except ValueError as e: return {"success": False, "error": str(e)}

Other sources

MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to 0.22.0, the remediation for CVE-2026-27825 protects download destinations but does not constrain source paths used by attachment uploads. A caller can provide an absolute or traversal filepath and cause the server to upload the selected local file. The advisory traces the vulnerable input and processing flow through uploadattachment, filepath, and CVE-2026-27825, which identify the affected entry points, controls, and code paths. This issue is fixed in version 0.22.0.

MITRE

Affected Software

2 affected componentsFixes available
MCP Atlassian MCP Atlassian<0.22.0
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. Upgrade

    Upgrade MCP Atlassian to a version that resolves this vulnerability.

    Fixed in 0.22.0

Event History

Sep 22, 2026
CVE Published
via MITRE·06:32 PM
Data Sourced
via MITRE·06:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:35 PM
Data Sourced
via GitHub·08:35 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

A caller with privileges to use the MCP Atlassian server's attachment-upload functionality can exploit it remotely. The attack does not require user interaction, but it does require low-level privileges.

2

What does an attacker need to provide?

The attacker supplies an absolute path or a path containing traversal sequences in the file_path input to upload_attachment. This can cause the server to upload a selected local file as an attachment.

3

Are deployments with the earlier CVE-2026-27825 remediation still affected?

Yes. The earlier remediation protects download destinations but does not restrict source paths used for attachment uploads, so it does not prevent this issue.

4

Which versions are affected and how can it be remediated?

Versions before 0.22.0 are affected. Upgrade MCP Atlassian to version 0.22.0, which fixes the issue.

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