CVE-2026-77247: MCP Atlassian Arbitrary Server-local File Upload To Vulnerability

HIGH
Advisory Identifier: GHSA-f6pj-qv47-g96w
CWE-73
Published
Advisory Summary

CVE-2026-77247 is a HIGH arbitrary server-local file upload to vulnerability (CWE-73: External Control of File Name or Path) affecting MCP Atlassian libraries in the PyPI ecosystem. The issue involves arbitrary server-local file upload to jira/confluence attachments via unrestricted file_path parameters. Remediation is available by upgrading affected packages to version 0.22.0.

CVE-2026-77247 at a Glance

CVE Identifier CVE-2026-77247
GHSA Identifier GHSA-f6pj-qv47-g96w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-73: External Control of File Name or Path
Affected Product MCP Atlassian
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-77247

To remediate this vulnerability, upgrade all affected MCP Atlassian dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mcp-atlassian fixed: 0.22.0
pip install mcp-atlassian>=0.22.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show mcp-atlassian

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-77247, inspect your installed packages using pip:

pip show mcp-atlassian

Analyze the terminal output to locate any version of MCP Atlassian in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.22.0), your application is affected.

Note: The pip show mcp-atlassian command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In MCP Atlassian, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The Jira and Confluence attachment upload tools accept caller-controlled file path parameters and read those paths from the MCP server's local filesystem before uploading the file as an Atlassian attachment. In local `stdio` deployments, this can expose files readable by the user's MCP process. In documented HTTP/SSE or `streamable-http` deployments, the impact is higher: any MCP client that is allowed to invoke write/upload tools can cause the server process to read a server-local file and upload it to Jira or Confluence. This is not dependent on an AI prompt injection or model behavior. It can be triggered deterministically with a normal MCP tool call. ## Details The vulnerable behavior exists because upload tool arguments are treated as server-local filesystem paths. Relevant implementation points: - `mcp_atlassian.confluence.attachments.AttachmentsMixin.upload_attachment` - Accepts `file_path`. - Converts the supplied value to an absolute path when needed. - Checks existence with `os.path.exists`. - Passes the path into the attachment upload flow. - `mcp_atlassian.confluence.attachments.AttachmentsMixin._upload_attachment_direct` - Opens the supplied `file_path` with `open(file_path, "rb")`. - Sends the resulting file object as multipart form data to Confluence. - `mcp_atlassian.confluence.attachments.AttachmentsMixin.upload_attachments` - Iterates caller-supplied `file_paths`. - Calls `upload_attachment` for each path. - `mcp_atlassian.jira.attachments.AttachmentsMixin.upload_attachment` - Accepts `file_path`. - Converts the supplied value to an absolute path when needed. - Checks existence with `os.path.exists`. - Opens the file and uploads it as a Jira attachment. - `mcp_atlassian.jira.attachments.AttachmentsMixin.upload_attachments` - Iterates caller-supplied `file_paths`. - Calls `upload_attachment` for each path. - `mcp_atlassian.servers.jira.update_issue` - Accepts an `attachments` argument as a JSON array string or comma-separated string. - Converts it into attachment paths and passes them into the Jira update flow. The project also documents non-stdio deployment modes: - `sse` - `streamable-http` - multi-user authentication - Docker and Kubernetes deployment Therefore the upload path arguments should not be treated as if they always come from a single fully trusted local desktop user. In an HTTP or multi-user deployment, the caller and the server-local filesystem are separate security boundaries. The core issue is that the MCP caller can choose a path, while the MCP server reads that path using the server process privileges and sends the bytes to a remote Jira or Confluence attachment endpoint. Expected behavior: - Server-local file uploads should be denied by default in HTTP/SSE or multi-user deployments, or - Uploads should be constrained to an explicit allowlisted upload directory after realpath resolution, and - Dangerous path forms such as remote UNC paths and `file://` URLs should be rejected before filesystem checks. ## PoC The following proof of concept uses a benign temporary file generated at runtime. It does not rely on prompt injection or any AI/LLM behavior. It uses a normal MCP client call against a test Confluence page controlled by the tester. Prerequisites: - A test Confluence site. - A test page content ID where the tester is allowed to upload attachments. - A test Confluence API token or another supported authentication method. - Python 3.10 or newer. Start `mcp-atlassian` in HTTP mode: ```bash docker run --rm -p 9000:9000 \ -e CONFLUENCE_URL="https://<your-test-site>.atlassian.net/wiki" \ -e CONFLUENCE_USERNAME="<tester-email>" \ -e CONFLUENCE_API_TOKEN="<tester-api-token>" \ ghcr.io/sooperset/mcp-atlassian:latest \ --transport streamable-http --host 0.0.0.0 --port 9000 ``` Install the MCP Python client: ```bash python -m pip install "mcp>=1.8.0" ``` Run this standalone client script: ```python import asyncio import os import tempfile from pathlib import Path from mcp import ClientSession from mcp.client.streamable_http import streamablehttp_client async def main() -> None: mcp_url = os.environ.get("MCP_URL", "http://127.0.0.1:9000/mcp") content_id = os.environ["CONFLUENCE_CONTENT_ID"] proof_dir = Path(tempfile.mkdtemp(prefix="mcp-atlassian-proof-")) proof_file = proof_dir / "server-local-proof.txt" proof_file.write_text( "This benign file was read from the MCP server filesystem and uploaded by an MCP tool call.\n", encoding="utf-8", ) async with streamablehttp_client(mcp_url) as (read_stream, write_stream, _): async with ClientSession(read_stream, write_stream) as session: await session.initialize() result = await session.call_tool( "confluence_upload_attachments", { "content_id": content_id, "file_paths": str(proof_file), "comment": "Security test: benign server-local upload proof", "minor_edit": True, }, ) print(result) print(f"Uploaded test filename: {proof_file.name}") if __name__ == "__main__": asyncio.run(main()) ``` Run it with the test page ID: ```bash CONFLUENCE_CONTENT_ID="<test-page-content-id>" python poc.py ``` Observed result: 1. The MCP client sends a normal `confluence_upload_attachments` tool call. 2. The MCP server reads the temporary file from its own filesystem. 3. The MCP server uploads that file as an attachment to the configured Confluence page. 4. The uploaded attachment appears on the test page. Security significance: - The MCP caller did not need shell access to the server. - The MCP caller did not need direct filesystem access to the server. - The MCP caller only needed permission to invoke the upload tool. - The file read happened with the privileges of the MCP server process. The same class of issue applies to Jira attachment upload flows that accept caller-controlled file path parameters. ## Impact This is a server-local file disclosure and exfiltration primitive through attachment upload tools. Impacted users: - Users running `mcp-atlassian` with write/upload tools enabled. - Operators exposing `mcp-atlassian` through `sse` or `streamable-http`. - Multi-user deployments where MCP callers are not fully trusted with arbitrary read access to the MCP server filesystem. - Docker or Kubernetes deployments where the MCP process can read environment files, mounted secrets, service account tokens, application configuration, or shared volumes. Potential attacker: - A malicious or compromised MCP client with permission to invoke attachment upload tools. - A malicious user in a multi-user MCP deployment. - An attacker who can supply or influence MCP tool arguments through an integrated workflow. Potentially exposed data depends on the deployment, but can include files readable by the MCP server process, such as: - application configuration - deployment secrets - cloud or service credentials mounted into the runtime - CI/CD or automation tokens - other files available to the MCP server user This issue does not require prior compromise of the internal network in deployments where the MCP service is intentionally exposed over HTTP/SSE to multiple users or external MCP clients. The attacker only needs the ability to invoke the upload tool. The server then reads the chosen path with its own process privileges and uploads it to Jira or Confluence. If the intended security model is that every MCP caller is fully trusted with arbitrary read access to the server filesystem, that should be documented explicitly. Otherwise, server-local file path uploads should be opt-in and constrained to a configured upload root. Suggested fixes: - Default-deny server-local path uploads in HTTP/SSE and multi-user deployments. - Add an explicit opt-in flag for server-local upload paths. - Require an allowlisted upload root and enforce it after realpath resolution. - Reject `file://` URLs and remote UNC path forms before any filesystem operation. - Prefer client-provided file/resource blobs over server-local path strings for remote MCP deployments.

CVE-2026-77247 Affected MCP Atlassian Versions

1 component(s)
Fixed Versions:
0.22.0
Product / Package Ecosystem Affected Versions Fixed Version
mcp-atlassian
PyPI
< 0.22.0
0.22.0

References

Frequently Asked Questions

What is CVE-2026-77247?
CVE-2026-77247 is a security vulnerability in MCP Atlassian involving Arbitrary server-local file upload to Jira/Confluence attachments via unrestricted file_path parameters under CWE-73: External Control of File Name or Path.
Which MCP Atlassian versions are affected?
Affected versions include releases prior to 0.22.0 across affected packages: mcp-atlassian.
What version fixes CVE-2026-77247?
Upgrading to 0.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-atlassian affected?
Yes, mcp-atlassian is affected in releases prior to 0.22.0. Upgrade your dependency to 0.22.0 or later.
What CWE is associated with CVE-2026-77247?
CVE-2026-77247 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check PyPI dependencies for CVE-2026-77247?
Run the dependency tree command: 'pip show mcp-atlassian'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f6pj-qv47-g96w",
  "modified" : "2026-09-22T20:36:29Z",
  "published" : "2026-09-22T20:36:29Z",
  "aliases" : [ "CVE-2026-77247" ],
  "summary" : "MCP Atlassian: Arbitrary server-local file upload to Jira/Confluence attachments via unrestricted file_path parameters",
  "details" : "## Summary\n\nThe Jira and Confluence attachment upload tools accept caller-controlled file path parameters and read those paths from the MCP server's local filesystem before uploading the file as an Atlassian attachment.\n\nIn local `stdio` deployments, this can expose files readable by the user's MCP process. In documented HTTP/SSE or `streamable-http` deployments, the impact is higher: any MCP client that is allowed to invoke write/upload tools can cause the server process to read a server-local file and upload it to Jira or Confluence.\n\nThis is not dependent on an AI prompt injection or model behavior. It can be triggered deterministically with a normal MCP tool call.\n\n## Details\n\nThe vulnerable behavior exists because upload tool arguments are treated as server-local filesystem paths.\n\nRelevant implementation points:\n\n- `mcp_atlassian.confluence.attachments.AttachmentsMixin.upload_attachment`\n  - Accepts `file_path`.\n  - Converts the supplied value to an absolute path when needed.\n  - Checks existence with `os.path.exists`.\n  - Passes the path into the attachment upload flow.\n\n- `mcp_atlassian.confluence.attachments.AttachmentsMixin._upload_attachment_direct`\n  - Opens the supplied `file_path` with `open(file_path, \"rb\")`.\n  - Sends the resulting file object as multipart form data to Confluence.\n\n- `mcp_atlassian.confluence.attachments.AttachmentsMixin.upload_attachments`\n  - Iterates caller-supplied `file_paths`.\n  - Calls `upload_attachment` for each path.\n\n- `mcp_atlassian.jira.attachments.AttachmentsMixin.upload_attachment`\n  - Accepts `file_path`.\n  - Converts the supplied value to an absolute path when needed.\n  - Checks existence with `os.path.exists`.\n  - Opens the file and uploads it as a Jira attachment.\n\n- `mcp_atlassian.jira.attachments.AttachmentsMixin.upload_attachments`\n  - Iterates caller-supplied `file_paths`.\n  - Calls `upload_attachment` for each path.\n\n- `mcp_atlassian.servers.jira.update_issue`\n  - Accepts an `attachments` argument as a JSON array string or comma-separated string.\n  - Converts it into attachment paths and passes them into the Jira update flow.\n\nThe project also documents non-stdio deployment modes:\n\n- `sse`\n- `streamable-http`\n- multi-user authentication\n- Docker and Kubernetes deployment\n\nTherefore the upload path arguments should not be treated as if they always come from a single fully trusted local desktop user. In an HTTP or multi-user deployment, the caller and the server-local filesystem are separate security boundaries.\n\nThe core issue is that the MCP caller can choose a path, while the MCP server reads that path using the server process privileges and sends the bytes to a remote Jira or Confluence attachment endpoint.\n\nExpected behavior:\n\n- Server-local file uploads should be denied by default in HTTP/SSE or multi-user deployments, or\n- Uploads should be constrained to an explicit allowlisted upload directory after realpath resolution, and\n- Dangerous path forms such as remote UNC paths and `file://` URLs should be rejected before filesystem checks.\n\n## PoC\n\nThe following proof of concept uses a benign temporary file generated at runtime. It does not rely on prompt injection or any AI/LLM behavior. It uses a normal MCP client call against a test Confluence page controlled by the tester.\n\nPrerequisites:\n\n- A test Confluence site.\n- A test page content ID where the tester is allowed to upload attachments.\n- A test Confluence API token or another supported authentication method.\n- Python 3.10 or newer.\n\nStart `mcp-atlassian` in HTTP mode:\n\n```bash\ndocker run --rm -p 9000:9000 \\\n  -e CONFLUENCE_URL=\"https://<your-test-site>.atlassian.net/wiki\" \\\n  -e CONFLUENCE_USERNAME=\"<tester-email>\" \\\n  -e CONFLUENCE_API_TOKEN=\"<tester-api-token>\" \\\n  ghcr.io/sooperset/mcp-atlassian:latest \\\n  --transport streamable-http --host 0.0.0.0 --port 9000\n```\n\nInstall the MCP Python client:\n\n```bash\npython -m pip install \"mcp>=1.8.0\"\n```\n\nRun this standalone client script:\n\n```python\nimport asyncio\nimport os\nimport tempfile\nfrom pathlib import Path\n\nfrom mcp import ClientSession\nfrom mcp.client.streamable_http import streamablehttp_client\n\n\nasync def main() -> None:\n    mcp_url = os.environ.get(\"MCP_URL\", \"http://127.0.0.1:9000/mcp\")\n    content_id = os.environ[\"CONFLUENCE_CONTENT_ID\"]\n\n    proof_dir = Path(tempfile.mkdtemp(prefix=\"mcp-atlassian-proof-\"))\n    proof_file = proof_dir / \"server-local-proof.txt\"\n    proof_file.write_text(\n        \"This benign file was read from the MCP server filesystem and uploaded by an MCP tool call.\\n\",\n        encoding=\"utf-8\",\n    )\n\n    async with streamablehttp_client(mcp_url) as (read_stream, write_stream, _):\n        async with ClientSession(read_stream, write_stream) as session:\n            await session.initialize()\n            result = await session.call_tool(\n                \"confluence_upload_attachments\",\n                {\n                    \"content_id\": content_id,\n                    \"file_paths\": str(proof_file),\n                    \"comment\": \"Security test: benign server-local upload proof\",\n                    \"minor_edit\": True,\n                },\n            )\n            print(result)\n            print(f\"Uploaded test filename: {proof_file.name}\")\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\nRun it with the test page ID:\n\n```bash\nCONFLUENCE_CONTENT_ID=\"<test-page-content-id>\" python poc.py\n```\n\nObserved result:\n\n1. The MCP client sends a normal `confluence_upload_attachments` tool call.\n2. The MCP server reads the temporary file from its own filesystem.\n3. The MCP server uploads that file as an attachment to the configured Confluence page.\n4. The uploaded attachment appears on the test page.\n\nSecurity significance:\n\n- The MCP caller did not need shell access to the server.\n- The MCP caller did not need direct filesystem access to the server.\n- The MCP caller only needed permission to invoke the upload tool.\n- The file read happened with the privileges of the MCP server process.\n\nThe same class of issue applies to Jira attachment upload flows that accept caller-controlled file path parameters.\n\n## Impact\n\nThis is a server-local file disclosure and exfiltration primitive through attachment upload tools.\n\nImpacted users:\n\n- Users running `mcp-atlassian` with write/upload tools enabled.\n- Operators exposing `mcp-atlassian` through `sse` or `streamable-http`.\n- Multi-user deployments where MCP callers are not fully trusted with arbitrary read access to the MCP server filesystem.\n- Docker or Kubernetes deployments where the MCP process can read environment files, mounted secrets, service account tokens, application configuration, or shared volumes.\n\nPotential attacker:\n\n- A malicious or compromised MCP client with permission to invoke attachment upload tools.\n- A malicious user in a multi-user MCP deployment.\n- An attacker who can supply or influence MCP tool arguments through an integrated workflow.\n\nPotentially exposed data depends on the deployment, but can include files readable by the MCP server process, such as:\n\n- application configuration\n- deployment secrets\n- cloud or service credentials mounted into the runtime\n- CI/CD or automation tokens\n- other files available to the MCP server user\n\nThis issue does not require prior compromise of the internal network in deployments where the MCP service is intentionally exposed over HTTP/SSE to multiple users or external MCP clients. The attacker only needs the ability to invoke the upload tool. The server then reads the chosen path with its own process privileges and uploads it to Jira or Confluence.\n\nIf the intended security model is that every MCP caller is fully trusted with arbitrary read access to the server filesystem, that should be documented explicitly. Otherwise, server-local file path uploads should be opt-in and constrained to a configured upload root.\n\nSuggested fixes:\n\n- Default-deny server-local path uploads in HTTP/SSE and multi-user deployments.\n- Add an explicit opt-in flag for server-local upload paths.\n- Require an allowlisted upload root and enforce it after realpath resolution.\n- Reject `file://` URLs and remote UNC path forms before any filesystem operation.\n- Prefer client-provided file/resource blobs over server-local path strings for remote MCP deployments.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mcp-atlassian"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sooperset/mcp-atlassian/security/advisories/GHSA-f6pj-qv47-g96w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sooperset/mcp-atlassian/pull/1448"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sooperset/mcp-atlassian/commit/b041733473f95119dd539542a43c280737a8e460"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sooperset/mcp-atlassian"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sooperset/mcp-atlassian/releases/tag/v0.22.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-73" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-22T20:36:29Z",
    "nvd_published_at" : null
  }
}