Skip to main content

Mattermost EUVDEUVD-2026-38246

| CVE-2026-5139 MEDIUM
Missing Authorization (CWE-862)
2026-06-22 Mattermost GHSA-2g8v-grq3-hq2g
5.4
CVSS 3.1 · Vendor: Mattermost
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Mattermost as any valid user
  2. Delivery
    Issue /gitlab connect <attacker-controlled-URL> slash command
  3. Exploit
    setDefaultInstance executes without authorization verification
  4. Execution
    Workspace-wide GitLab default instance overwritten
  5. Persist
    GitLab integration traffic (OAuth, webhooks) redirected
  6. Impact
    Harvest 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Mattermost 10.11.0 ≤10.11.17
Mattermost 11.7.0 ≤11.7.0
Mattermost 11.5.0 ≤11.5.5
Mattermost 11.6.0 ≤11.6.2

Affected Packages

go github.com/mattermost/mattermost-server fix: 10.11.18+incompatible, 10.11.18, 11.5.6+incompatible, 11.5.6, 11.6.3+incompatible, 11.6.3, 11.7.1+incompatible, 11.7.1
euvd mattermost no fix

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

Vendor (Mattermost) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (Mattermost).

CVSS VectorVendor: Mattermost

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

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

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
Popular open-source team chat, significant but niche deployments
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2025-25279 CRITICAL
9.9 Feb 24

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 boa

CVE-2026-48801 HIGH POC
8.7 Jun 26

Denial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s

CVE-2022-4044 MEDIUM POC
6.5 Nov 23

A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto

CVE-2022-3257 MEDIUM POC
6.5 Sep 23

Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w

CVE-2025-4981 CRITICAL
9.9 Jun 20

A remote code execution vulnerability (CVSS 9.9) that allows authenticated users. Critical severity with potential for s

CVE-2025-20051 CRITICAL
9.9 Feb 24

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

CVE-2025-12421 CRITICAL
9.9 Nov 27

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

CVE-2025-12419 CRITICAL
9.9 Nov 27

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

CVE-2026-4858 CRITICAL
9.9 May 21

Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the

CVE-2023-6458 CRITICAL
9.8 Dec 06

Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf

CVE-2020-26276 CRITICAL
9.8 Dec 17

Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2025-24490 CRITICAL
9.6 Feb 24

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy