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
2DescriptionNVD
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
AnalysisAI
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.
Technical ContextAI
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.
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.
More in Mattermost
View allDenial 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
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 9.9.x <= 9.9.0, 9.5.x <= 9.5.6, 9.7.x <= 9.7.5 and 9.8.x <= 9.8.1 fail to disallow unsolicited invit
Dex is a federated OpenID Connect provider written in Go. Rated critical severity (CVSS 9.6), this vulnerability is remo
Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t
Mattermost 6.3.0 and earlier fails to properly sanitize the HTML content in the email invitation sent to guest users, wh
Mattermost fails to invalidate existing authorization codes when deauthorizing an OAuth2 app, allowing an attacker posse
Privilege escalation in Mattermost server (11.6.x, 11.5.x, and 10.11.x branches) allows a low-privileged user holding gr
Same weakness CWE-305 – Authentication Bypass by Primary Weakness
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-43305
GHSA-4v7j-4mvr-5975