CVE-2026-4339: Mattermost SSRF in Agents Plugin MCP Server – Patch & Detection Guide
Mattermost has a flaw in its Agents plugin that fails to block requests to private or internal network addresses. An authenticated attacker with access to the MCP (Model Context Protocol) server in stdio mode can exploit this to retrieve sensitive data from internal services by crafting attachment URLs pointing to internal IP ranges. The vulnerability affects Mattermost versions 10.11.x up to 10.11.18, 11.5.x up to 11.5.6, and 11.6.x up to 11.6.3.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Weaknesses (CWE)
- CWE-918
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-26 / 2026-06-29
NVD description (verbatim)
Mattermost versions 10.11.x <= 10.11.18, 11.6.x <= 11.6.3, 11.5.x <= 11.5.6 fail to validate attachment URLs against internal or private IP ranges in the Mattermost Agents plugin MCP server which allows an attacker with access to the MCP server in stdio mode to perform server-side request forgery (SSRF) and exfiltrate data from internal network services via supplying internal URLs as file attachments in post creation requests.. Mattermost Advisory ID: MMSA-2026-00635
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The Mattermost Agents plugin MCP server lacks proper validation of attachment URLs during post creation, failing to enforce a blocklist or verification against internal and private IP address ranges (RFC 1918, loopback, link-local, etc.). An attacker with local access to the MCP server in stdio mode can supply URLs pointing to internal services—such as metadata endpoints, admin panels, or database management interfaces—and trigger server-side requests that reveal sensitive information. This is classified as a Server-Side Request Forgery (SSRF) vulnerability under CWE-918.
Business impact
A compromised or malicious account with MCP server access poses a direct risk to internal network confidentiality. Attackers can enumerate and probe internal services, retrieve configuration data, cloud metadata credentials, or other sensitive information without crossing network boundaries. In environments where the MCP server runs with elevated privileges or broad network access, the impact escalates to data exfiltration and potential lateral movement discovery.
Affected systems
Mattermost Server versions 10.11.x through 10.11.18, 11.5.x through 11.5.6, and 11.6.x through 11.6.3 are vulnerable. Organizations running the Agents plugin with the MCP server in stdio mode are directly affected. Deployments where this component is isolated or disabled are not impacted.
Exploitability
Exploitation requires authenticated access to the MCP server (Prerequisite: PR:L) and is not dependent on user interaction or cross-site complexity. An insider or an attacker who has gained legitimate credentials can immediately craft malicious post requests with internal URLs. The local attack vector and low complexity place this at moderate exploitability, though the requirement for MCP server access limits the pool of potential attackers compared to web-facing vulnerabilities.
Remediation
Update affected Mattermost installations to patched versions: verify the latest 10.11.x, 11.5.x, and 11.6.x releases or upgrade to a newer release line. Consult the Mattermost Advisory MMSA-2026-00635 for precise patch version numbers and deployment guidance. As interim controls, restrict MCP server access to trusted administrators, audit post creation logs for suspicious URLs, and implement network-level egress filtering to prevent internal IP connections from the Mattermost process.
Patch guidance
Patch availability and version numbers should be verified against Mattermost's official security advisory MMSA-2026-00635 and release notes. Prioritize patching in environments where the MCP server is exposed to multiple users or where internal network segmentation is limited. Test patches in a staging environment before production rollout, as the Agents plugin may integrate with other systems.
Detection guidance
Monitor Mattermost post creation logs for URLs containing RFC 1918 addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.1), or other private ranges. Track API calls to the MCP server attachment endpoints with suspicious parameters. Enable debug logging in the Agents plugin and review outbound connections initiated by the Mattermost process for unexpected internal targets. Correlate with successful post submissions containing file attachments to identify potential exploitation patterns.
Why prioritize this
This vulnerability warrants priority due to its confidentiality impact (C:H) and the insider-threat nature of the attack. While the CVSS score of 6.5 reflects the authentication requirement and local attack vector, the ability to exfiltrate sensitive internal data without network traversal or further exploitation steps makes it a material risk for organizations with sensitive internal infrastructure. The fact that it is not yet listed in CISA's Known Exploited Vulnerabilities catalog provides a narrow window for proactive patching before public weaponization.
Risk score, explained
CVSS v3.1 score of 6.5 (MEDIUM) reflects: a Local attack vector (AV:L) limiting external attackers but capturing insider threats, Low Attack Complexity (AC:L) requiring no special conditions, Low Privilege requirements (PR:L) tied to account compromise, No User Interaction (UI:N), and a Changed Scope (S:C) affecting confidentiality of internal systems beyond the application itself. High Confidentiality impact (C:H) is offset by No Integrity or Availability impact. This score correctly penalizes the local/authenticated nature while acknowledging the severe potential for data leakage.
Frequently asked questions
Can an external attacker exploit this vulnerability directly?
No. The vulnerability requires authenticated access to the MCP server in stdio mode. An external attacker would first need to compromise a legitimate Mattermost account with MCP access or find another pathway to local execution on the server. Once inside, however, no further authentication or user interaction is needed to trigger the SSRF.
What is the MCP server and why is it relevant?
The MCP (Model Context Protocol) server is part of Mattermost's Agents plugin and enables integration with external AI models and tools. The stdio mode variant runs as a local inter-process service. The vulnerability exists specifically in how this component validates attachment URLs, making it a critical integration point to audit and secure.
How does this differ from a typical web-based SSRF?
Traditional SSRF vulnerabilities require an attacker to send a request through a web application to trigger an outbound request. Here, the attacker directly submits malicious attachment URLs to the MCP server via post creation. The attack surface is narrower (requires account compromise) but the impact—accessing internal services without network pivoting—is equally severe.
If we don't use the Agents plugin, are we vulnerable?
No. The vulnerability is specific to the Mattermost Agents plugin. If your deployment has not installed or enabled this plugin, you are not affected. Verify your installed plugins and disable or update the Agents plugin if present.
This analysis is based on the CVE-2026-4339 record and Mattermost Advisory MMSA-2026-00635 as published. Patch version numbers, detailed remediation steps, and vendor guidance should be verified against official Mattermost releases and documentation. SEC.co does not provide warranty or guarantee regarding the completeness or applicability of this information to any specific environment. Organizations should conduct their own risk assessment and testing before applying patches or deploying mitigations. Source: NVD (public-domain), retrieved 2026-08-05. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2025-36324MEDIUMIBM watsonx.data Intelligence SSRF Vulnerability - Patch & Detection Guide
- CVE-2025-58175MEDIUMGeoServer SSRF Vulnerability in Proxy Configuration
- CVE-2026-0285MEDIUMPAN-OS Server-Side Request Forgery (SSRF) – Palo Alto Networks
- CVE-2026-10052MEDIUMQuay SSRF in LDAP/SMTP Validation—Internal Network Reconnaissance Risk
- CVE-2026-10177MEDIUMSSRF in Aider-AI Aider 0.86.3 AWS Metadata Endpoint
- CVE-2026-10239MEDIUMJeecgBoot Server-Side Request Forgery (SSRF) in Word Editing Module
- CVE-2026-10240MEDIUMJeecgBoot SSRF Vulnerability in /airag/airagModel/test Endpoint
- CVE-2026-10241MEDIUMJimuReport SSRF in File Download Function – Patch to 3.9.2