Skip to content

AAK-MCP-ATLASSIAN-CVE-2026-27825-001: mcp-atlassian below 0.17.0 (CVE-2026-27825), or Jira/Confluence content reaching an exec sink

Severity
CRITICAL
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/container_image_pins.py, agent_audit_kit/scanners/mcp_atlassian.py
Auto-fixable
No.
SARIF name
McpAtlassianRce27825

What it detects

NVD records CVE-2026-27825 (CVSS 9.0, CWE-22 + CWE-73) as fixed in mcp-atlassian 0.17.0: confluence_download_attachment writes to a caller-supplied download_path with no directory boundary, and the caller also controls the content through a Confluence attachment, so writing a cron entry runs code with no restart. This rule reports a declared mcp-atlassian below 0.17.0. It also reports a related class in the user's own code, which is not the CVE's code path: a Jira/Confluence field (issue.fields.*, issue.description, comment.body, page.content) reaching subprocess, os.system or os.popen without validation, in a file that uses an Atlassian client, the shape the 2026-04-22 public reporting described.

How to fix

Pin mcp-atlassian>=0.17.0 (0.22.0 or later also clears the upload_attachment pin). For the source pattern, allow-list or shlex.quote every Jira/Confluence field before it reaches a subprocess, and pass argv lists rather than a shell string.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-ATLASSIAN-CVE-2026-27825-001

Limitations

The pin reads requirements*.txt, pyproject.toml and Pipfile at the project root and judges only a version it can parse: an unpinned install and a lockfile's separate name and version lines are not reported. The source pattern is same-file co-occurrence of an Atlassian client, a Jira/Confluence field and a sink, not data flow, and it never reads mcp-atlassian's own code. The ghcr.io/sooperset/mcp-atlassian image is read at a version tag (a docker run argument in an MCP config, an image: value, a Dockerfile FROM or Helm values); an untagged, latest or digest reference is not reported. A Python file over 512 KB, a manifest over 2 MB, or a lockfile over 32 MiB, is not read.

References

  • CVE: CVE-2026-27825
  • OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
  • OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
  • Adversa AI MCP Top 25 (AAK-defined ids): ADV-INJECT-05 (Tool Param Code Injection)
  • Incidents and advisories: ANTHROPIC-MCP-2026-04-22
  • CSA AI Controls Matrix (AICM): AIS-07, STA-02

All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-ATLASSIAN-CVE-2026-27825-001.md: the page then shows that text, with the registry reference appended under it.