Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Mattermost as any valid user
-
DeliveryIssue /gitlab connect <attacker-controlled-URL> slash command
-
ExploitsetDefaultInstance executes without authorization verification
-
ExecutionWorkspace-wide GitLab default instance overwritten
-
PersistGitLab integration traffic (OAuth, webhooks) redirected
-
ImpactHarvest tokens or credentials from misdirected integration activity
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid Mattermost user account - any authenticated session suffices, with no admin role or special channel permission needed (PR:L per CVSS). The GitLab integration plugin must be installed and enabled on the Mattermost instance, making the /gitlab connect command available; if the plugin is absent or disabled, this vulnerability cannot be triggered. Exploitation is limited in scope to overwriting the workspace-wide GitLab default instance setting - it does not grant code execution, access to unrelated data, or broader platform administrative control. External unauthenticated attackers cannot exploit this without first obtaining a valid Mattermost account. |
| Impact | The vendor-supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L) scoring 5.4 Medium is consistent with the described behavior. Network vector (AV:N) and low complexity (AC:L) are well-supported - the exploit is a simple slash command over standard Mattermost channels. PR:L correctly reflects that a basic authenticated account suffices; no admin role or special permission is required. The I:L rating captures overwriting a global configuration value, and A:L captures potential disruption of the GitLab integration for all users. No EPSS score was supplied in the input data, and the vulnerability does not appear in CISA KEV, indicating no confirmed widespread or active exploitation at time of analysis. Real-world risk is elevated in organizations where the GitLab integration handles OAuth flows or webhook delivery, as a misdirected default instance could redirect those operations to an attacker-controlled endpoint. Risk is bounded by the requirement for a valid user account, meaning external unauthenticated attackers cannot exploit this directly. |
| Exploit ScenarioDerived | An authenticated Mattermost user with no administrative privileges types /gitlab connect https://attacker.example.com in any channel where the GitLab plugin is active. The setDefaultInstance function executes without an authorization check, replacing the legitimate global GitLab endpoint with the attacker-controlled URL. Subsequent workspace activity such as OAuth authentication flows or GitLab webhook deliveries is redirected to the attacker's server, enabling credential or token harvesting from affected users and services. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
The /gitlab connect slash command in Mattermost fails to enforce administrator-level authorization on the setDefaultInstance call, enabling any authenticated user to overwrite the workspace-wide default GitLab instance configuration. Affected across four concurrent release trains (11.7.0, 11.6.x ≤ 11.6.2, 11.5.x ≤ 11.5.5, 10.11.x ≤ 10.11.17), this missing authorization flaw (CWE-862) is exploitable by any valid Mattermost account holder without elevated privileges. No public exploit code or active exploitation has been identified at time of analysis, but the low attack complexity and low privilege requirement make this accessible to any workspace member targeting GitLab integration infrastructure.
RemediationAI
Upgrade to a patched Mattermost release per advisory MMSA-2026-00644; consult https://mattermost.com/security-updates for the exact fix version in each affected release train, as precise patched version numbers were not independently confirmed in the available data beyond the advisory reference. As a compensating control pending upgrade, administrators can disable the GitLab plugin entirely via the Mattermost System Console if GitLab integration is not actively required - this eliminates the vulnerable command surface at the cost of all /gitlab slash command functionality. If the integration must remain active, restricting slash command usage to specific trusted channels or limiting channel membership reduces the pool of users who can invoke /gitlab connect, though this does not eliminate the vulnerability and should be treated as a partial mitigation only.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mattermost is an open-source team messaging platform supporting slash commands for third-party integrations. The /gitlab plugin exposes a connect command with a setDefaultInstance handler designed to allow administrators to define the workspace-wide default GitLab endpoint. CWE-862 (Missing Authorization) is the root cause: the application performs a privileged, globally scoped configuration write without verifying that the invoking principal holds an administrative role. Because the overwritten setting is global, it affects all users and services relying on the GitLab integration across the entire Mattermost instance - not just the invoking user's session. The CPE string cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:* confirms this affects the Mattermost server application directly, not a separately packaged plugin component.
Know when Mattermost gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Network-reachable slash command with no special configuration needed, but requires an authenticated session (PR:L); global config overwrite yields low integrity and availability impact with no confidentiality exposure.
Primary rating from Vendor (Mattermost).
CVSS VectorVendor: Mattermost
DescriptionCVE.org
Mattermost versions 11.7.x <= 11.7.0, 11.6.x <= 11.6.2, 11.5.x <= 11.5.5, 10.11.x <= 10.11.17 fail to enforce administrator authorization on the {{setDefaultInstance}} call within the {{/gitlab connect}} command handler, which allows any authenticated user to overwrite the global default GitLab instance configuration via the {{/gitlab connect <instance-name>}} slash command.. Mattermost Advisory ID: MMSA-2026-00644
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Mattermost
View allMattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate boa
Denial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s
A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto
Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w
A remote code execution vulnerability (CVSS 9.9) that allows authenticated users. Critical severity with potential for s
Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate inp
Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that t
Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validat
Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the
Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf
Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to use prepared statemen
EUVD-2026-38246
GHSA-2g8v-grq3-hq2g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB