Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRetain OAuth refresh token before deactivation
-
DeliveryAccount deactivated by admin
-
ExploitSubmit refresh token to /oauth/token endpoint
-
ExecutionReceive new valid bearer access token
-
PersistAuthenticate to Mattermost workspace as deactivated user
-
ImpactRead or modify workspace data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Primary weakness mitigation
|
| Exploitation Conditions | Exploitation requires possession of a valid OAuth refresh token that was issued to the target Mattermost account prior to account deactivation. Specifically, OAuth 2.0 must be enabled and in use within the Mattermost deployment - either via a configured OAuth application or an OAuth-based SSO integration. The account must have been deactivated (not permanently deleted, which may clear token state). Limiting factors: the attacker must have retained the refresh token across the deactivation event (i.e., it was not previously rotated or manually revoked); the refresh token must not have exceeded its configured expiry; and the Mattermost instance must be network-reachable. Exploitation is limited to the permission scope of the original user account - no privilege escalation to administrator level is implied by the vulnerability itself. |
| Impact | The vendor-assigned CVSS 5.9 (AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N) warrants scrutiny. PR:H implies high-privilege prerequisites, which is debatable - the attack requires possession of a refresh token issued to a regular user account, which is more consistent with PR:L. The AC:H rating is defensible given the precondition of retaining a valid token across the deactivation event. EPSS data was not provided in the input, so exploitation probability cannot be quantified. The vulnerability is not in CISA KEV and no POC has been identified, both indicating no observed widespread exploitation. Despite the moderate CVSS score, the real-world risk is contextually significant for organizations that deactivate accounts as a primary offboarding or access-revocation control - a common practice. For such deployments, a deactivated contractor or compromised user account would silently retain persistent workspace access. The I:H and C:H impacts are credible given that token reuse grants full user-level read/write access to channels, files, and direct messages. The flaw's risk is low for organizations that rotate or explicitly revoke OAuth tokens as part of offboarding procedures. |
| Exploit ScenarioDerived | A recently terminated employee who had authenticated to a third-party OAuth application integrated with Mattermost retains a valid refresh token on their personal device. After their account is deactivated by IT, the former employee calls the Mattermost OAuth refresh endpoint with the retained token, receives a new bearer access token, and proceeds to read private channels, exfiltrate direct messages, and modify posts - all as their former identity - with no indication to administrators that the deactivated account is being used. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Mattermost fails to invalidate OAuth refresh tokens when a user account is deactivated, enabling former users - or any attacker who possesses a valid refresh token - to continue minting functional access tokens against the OAuth refresh token grant endpoint indefinitely after access revocation should have taken effect. All three actively maintained release branches are affected (10.11.x, 11.6.x, 11.7.x), making this a cross-branch session-persistence flaw with high confidentiality and integrity impact on any workspace relying on OAuth-integrated access control. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in CISA KEV, though the attack path requires minimal skill for any party already holding a refresh token.
RemediationAI
Patch available per vendor advisory at https://mattermost.com/security-updates (MMSA-2026-00680). Administrators should upgrade beyond the affected version ceiling in their respective branch - 10.11.19, 11.6.4, or 11.7.2 - to a patched release as soon as available. Exact fix versions are not independently confirmed from the provided data; consult the Mattermost security updates page directly to identify the specific patched build for your branch. As an immediate compensating control, administrators can manually audit and revoke active OAuth application authorizations for deactivated users through the Mattermost System Console (System Console > Integrations > OAuth 2.0 Applications), or delete and recreate the affected user accounts (deletion, unlike deactivation, may purge token state - verify behavior in your version). Disabling OAuth 2.0 entirely for external integrations eliminates the attack surface but will break any OAuth-dependent integrations; evaluate this trade-off based on organizational OAuth usage before applying.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in 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 and collaboration platform (CPE: cpe:2.3:a:mattermost:mattermost). Its OAuth 2.0 implementation issues refresh tokens - long-lived credentials designed to regenerate short-lived access tokens - to authenticated clients. CWE-305 (Authentication Bypass by Primary Weakness) describes the root cause: the primary authentication control (account deactivation) fails to cascade into revocation of derived credentials (refresh tokens). In a correct implementation, deactivating a user account should atomically invalidate all associated sessions, access tokens, and refresh tokens stored server-side. Mattermost instead leaves refresh tokens valid, meaning the OAuth /oauth/token endpoint with grant_type=refresh_token continues to issue new bearer tokens for deactivated accounts. This is a classic session-persistence flaw where token lifecycle management is decoupled from identity lifecycle management.
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:H/I:N/A:N
AV:N for network-accessible OAuth endpoint; AC:H for token-retention precondition; PR:L because the attacker was a regular user, not an administrator.
Primary rating from Vendor (Mattermost).
CVSS VectorNVD
Lifecycle Timeline
1DescriptionNVD
Mattermost versions 11.7.x <= 11.7.2, 11.6.x <= 11.6.4, 10.11.x <= 10.11.19 fail to invalidate OAuth refresh tokens upon user account deactivation, which allows a deactivated user or an attacker in possession of a valid refresh token to obtain new functional access tokens via the OAuth refresh token grant endpoint.. Mattermost Advisory ID: MMSA-2026-00680
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-43305
GHSA-4v7j-4mvr-5975
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB