Skip to main content

Mattermost CVE-2026-9571

| EUVDEUVD-2026-43305 MEDIUM
Authentication Bypass by Primary Weakness (CWE-305)
2026-07-13 Mattermost GHSA-4v7j-4mvr-5975
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Retain OAuth refresh token before deactivation
  2. Delivery
    Account deactivated by admin
  3. Exploit
    Submit refresh token to /oauth/token endpoint
  4. Execution
    Receive new valid bearer access token
  5. Persist
    Authenticate to Mattermost workspace as deactivated user
  6. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

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

Mattermost 11.6.0 ≤11.6.4
Mattermost 11.7.0 ≤11.7.2
Mattermost 10.11.0 ≤10.11.19

Affected Packages

euvd mattermost no fix

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

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

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.

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

Primary rating from Vendor (Mattermost).

CVSS VectorNVD

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

Lifecycle Timeline

1
CVSS changed
Jul 13, 2026 - 21:52 NVD
5.9 (MEDIUM) 6.5 (MEDIUM)

DescriptionNVD

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
popular open-source Slack alternative, strong enterprise and DevOps adoption
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 No
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
Total

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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