GHSA-g5r6-gv6m-f5jv: mcp-atlassian: Arbitrary file read via missing path validation in confluence_upload_attachment
A path validation vulnerability in the mcp-atlassian package's confluence_upload_attachment function allows authenticated clients or AI agents manipulated via prompt injection to read arbitrary files accessible by the server process. The vulnerability arises because the file_path parameter is passed directly to open() without validation, enabling exfiltration of sensitive files such as environment variables containing credentials. This can lead to full Atlassian account takeover and lateral movement. The issue affects versions prior to 0.22.0 and has a confirmed proof-of-concept. A simple fix involves adding path validation before file access.
AI Analysis
Technical Summary
The mcp-atlassian package's confluence_upload_attachment function lacks path validation on the file_path parameter before opening the file. This allows any authenticated MCP client or an AI agent influenced by prompt injection to read arbitrary files that the server process can access and upload them as Confluence attachments. The root cause is the absence of a validate_safe_path call before open(file_path, "rb"). The vulnerability has been confirmed with proof-of-concept uploads of sensitive files including /proc/self/environ, which contains environment variables with secrets like API tokens and credentials. Exploitation via prompt injection requires no MCP authentication, as demonstrated by an AI agent autonomously executing the upload based on crafted input. The vulnerability affects mcp-atlassian versions before 0.22.0.
Potential Impact
Successful exploitation allows reading and exfiltration of any file accessible by the server process, including sensitive environment variables containing API tokens, AWS keys, and database credentials. This can lead to full Atlassian account takeover and lateral movement within connected systems. The vulnerability can be triggered without authentication via prompt injection against AI agents using the MCP client, significantly increasing the attack surface and risk.
Mitigation Recommendations
A fix is available in mcp-atlassian version 0.22.0 and later that adds path validation before opening files in the confluence_upload_attachment function. Users should upgrade to version 0.22.0 or later to remediate this vulnerability. Until upgraded, restrict access to MCP clients and carefully control AI agent inputs to prevent prompt injection attacks. Patch status is confirmed by the existence of the fix in version 0.22.0.
GHSA-g5r6-gv6m-f5jv: mcp-atlassian: Arbitrary file read via missing path validation in confluence_upload_attachment
Description
A path validation vulnerability in the mcp-atlassian package's confluence_upload_attachment function allows authenticated clients or AI agents manipulated via prompt injection to read arbitrary files accessible by the server process. The vulnerability arises because the file_path parameter is passed directly to open() without validation, enabling exfiltration of sensitive files such as environment variables containing credentials. This can lead to full Atlassian account takeover and lateral movement. The issue affects versions prior to 0.22.0 and has a confirmed proof-of-concept. A simple fix involves adding path validation before file access.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The mcp-atlassian package's confluence_upload_attachment function lacks path validation on the file_path parameter before opening the file. This allows any authenticated MCP client or an AI agent influenced by prompt injection to read arbitrary files that the server process can access and upload them as Confluence attachments. The root cause is the absence of a validate_safe_path call before open(file_path, "rb"). The vulnerability has been confirmed with proof-of-concept uploads of sensitive files including /proc/self/environ, which contains environment variables with secrets like API tokens and credentials. Exploitation via prompt injection requires no MCP authentication, as demonstrated by an AI agent autonomously executing the upload based on crafted input. The vulnerability affects mcp-atlassian versions before 0.22.0.
Potential Impact
Successful exploitation allows reading and exfiltration of any file accessible by the server process, including sensitive environment variables containing API tokens, AWS keys, and database credentials. This can lead to full Atlassian account takeover and lateral movement within connected systems. The vulnerability can be triggered without authentication via prompt injection against AI agents using the MCP client, significantly increasing the attack surface and risk.
Mitigation Recommendations
A fix is available in mcp-atlassian version 0.22.0 and later that adds path validation before opening files in the confluence_upload_attachment function. Users should upgrade to version 0.22.0 or later to remediate this vulnerability. Until upgraded, restrict access to MCP clients and carefully control AI agent inputs to prevent prompt injection attacks. Patch status is confirmed by the existence of the fix in version 0.22.0.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g5r6-gv6m-f5jv
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a520eb368715ace438f525a
Added to database: 07/11/2026, 09:36:51 UTC
Last enriched: 07/11/2026, 09:49:21 UTC
Last updated: 07/12/2026, 03:44:53 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.