Antidote
Warning

vulnerableVerifiedAGT-2026-0145

mcp-atlassian: MCP Atlassian: HTTP upload tools accept arbitrary server-local file paths

A real bug in otherwise honest software. Check your version against the affected range below.

GHSA-mrq8-fv7v-hhjg · CVE-2026-77257 · PYSEC-2026-4098

sooperset/mcp-atlassian: HTTP upload tools can attach arbitrary server-local files

Date: 2026-05-05 Target: `sooperset/mcp-atlassian` Commit: `d8bc78698a63cb6b321c7ca796d6329d448f7f6d`

Summary

`mcp-atlassian` supports HTTP/SSE deployment for persistent, remote, and multi-user use. In that mode, write-capable Jira and Confluence attachment flows accept caller-controlled server-local file paths and read those paths without an upload-source allowlist or base directory restriction.

An authenticated caller, or a prompt-injected agent with tool-call capability, can cause the MCP server process to read a local file it can access and attach that file into a Jira issue or Confluence page using configured Atlassian credentials.

This is distinct from the prior download-path advisory: that issue was an arbitrary file write sink. This path is upload-source local file disclosure.

Impact

Impact is local file disclosure through an authenticated Atlassian attachment write. In Docker/Kubernetes deployments that mount `.env` or token material into the service, exposed files may include API tokens, OAuth credentials, service configuration, or other local secrets readable by the MCP process.

The issue is bounded by tool access and Atlassian permissions: the attacker needs an MCP call path to a write tool and an issue/page where the attachment can be written. It is not direct RCE.

Severity is Medium-to-High depending on deployment:

- Medium for single-user/local stdio usage or tightly scoped tokens. - High where HTTP/streamable deployments are shared, write tools are exposed, and the server has access to secrets or broad filesystem mounts.

Source Evidence

HTTP/multi-user deployment is first-class:

- `docs/http-transport.mdx:1-7` describes running as a persistent HTTP service for multi-user and remote deployment. - `docs/http-transport.mdx:10-13` lists SSE and streamable-http endpoints. - `docs/http-transport.mdx:88-90` says both HTTP transports support per-request authentication. - `docs/advanced/docker-production.mdx:25-37` shows Docker deployment with `.env`, exposed ports, and `HOST=0.0.0.0`. - `docs/advanced/docker-production.mdx:91-103` shows Atlassian credentials stored in `.env`. - `src/mcp_atlassian/__init__.py:359-363` defaults HTTP host to `0.0.0.0` unless overridden.

The Confluence upload path reads caller-chosen server-local files:

- `src/mcp_atlassian/servers/confluence.py:1290-1315` exposes `file_path` and explicitly accepts absolute or relative paths. - `src/mcp_atlassian/servers/confluence.py:1356-1363` passes `file_path` to `confluence_fetcher.upload_attachment`. - `src/mcp_atlassian/confluence/attachments.py:62-70` only converts relative paths to absolute and checks existence. - `src/mcp_atlassian/confluence/attachments.py:77-80` passes the path to `_upload_attachment_direct`. - `src/mcp_atlassian/confluence/attachments.py:477` opens `file_path` for the multipart upload.

The Jira update path can also upload caller-chosen server-local files:

- `src/mcp_atlassian/servers/jira.py:1564-1568` exposes `jira_update_issue` as a write tool in `toolset:jira_issues`. - `src/mcp_atlassian/servers/jira.py:1609-1618` accepts `attachments` as a JSON array or comma-separated list of file paths. - `src/mcp_atlassian/servers/jira.py:1648-1674` parses those file paths and adds them to the update payload. - `src/mcp_atlassian/jira/issues.py:1132-1137` forwards `attachments` to `upload_attachments`. - `src/mcp_atlassian/jira/attachments.py:372-389` converts relative paths to absolute, checks existence, opens the path, and passes it to `jira.add_attachment`.

Existing controls do not authorize the upload source path:

- `src/mcp_atlassian/utils/decorators.py:45-72` blocks writes only when read-only mode is enabled. - `src/mcp_atlassian/servers/main.py:276-279` filters write tools out of listing only in read-only mode. - `src/mcp_atlassian/utils/toolsets.py:158-183` currently enables all toolsets when `TOOLSETS` is unset. - `

Imported from OSV GHSA-mrq8-fv7v-hhjg.

Affected

PyPI:mcp-atlassian
< 0.22.0 (fixed in 0.22.0)

Field marks

Kind
mcp server
Reported by
osv-import

Sources

Wrong or outdated? Open an issue or PR against corpus/entries/AGT-2026-0145.json.