Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain victim OAuth bearer token
-
DeliveryPOST /api/v4/users/login/switch with crafted body
-
ExploitEndpoint accepts OAuth app session
-
ExecutionSet attacker password, detach IdP
-
ImpactPermanent SSO account takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
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 the attacker to already hold a valid OAuth bearer token for the specific target user AND the target account must be SSO/identity-provider-backed, since the attack abuses the account-type switch endpoint (POST /api/v4/users/login/switch) to convert SSO to password auth. The flaw is that OAuth application sessions are not rejected by this endpoint. Limiting factors: this is not reachable by a fully unauthenticated attacker (PR:H - a victim-scoped OAuth token is mandatory), attack complexity is high (AC:H), and only Mattermost versions in the listed vulnerable ranges with OAuth/SSO integration enabled are affected; deployments not using SSO-backed accounts or OAuth applications are not exposed. |
| Impact | This is a moderate-severity authorization flaw (CVSS 4.4, CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N; CWE-863 Incorrect Authorization) that reads as a genuine account-takeover primitive but with meaningful exploitation barriers. The network attack vector (AV:N) is offset by high attack complexity (AC:H) and high privilege requirement (PR:H): the attacker must already possess a valid OAuth bearer token scoped to the specific target user. The impact profile is integrity-only (I:H, C:N, A:N), which correctly reflects that the bug permits permanent takeover of the victim's SSO-backed account rather than data disclosure or disruption. No EPSS score, no SSVC decision, and no KEV listing were provided in the input, and no public exploit is identified, so there is no signal of active or widespread exploitation - this is a vendor-reported (Mattermost) issue, not one with demonstrated in-the-wild activity. The signals are internally consistent rather than conflicting: a network-exploitable but token-gated, high-complexity integrity bug. Verdict: this is a credible fix-on-schedule authorization defect, not an emergency; the realistic priority depends entirely on whether an attacker can plausibly obtain a victim's OAuth bearer token (e.g., via a compromised or malicious OAuth app), which the PR:H rating assumes. Treat it as an elevated-priority patch for SSO/OAuth-integrated Mattermost deployments, but it is not a mass-exploitation, high-real-risk scenario on current evidence. |
| Exploit ScenarioDerived | An attacker who has obtained a valid OAuth bearer token for a target user (for example through a compromised or malicious OAuth application granted access to that account) sends a crafted request to POST /api/v4/users/login/switch to change the account from SSO to email/password authentication. Because the endpoint fails to reject OAuth application sessions, the attacker sets an attacker-controlled password and detaches the account from its identity provider, achieving permanent takeover even after the original token is revoked. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 16, 2026
Account takeover in Mattermost 11.7.x through 11.10.0 lets an authenticated attacker who already holds a valid OAuth bearer token for a specific target user permanently hijack that user's SSO-backed account: the POST /api/v4/users/login/switch endpoint fails to reject OAuth application sessions, so the attacker can switch the account to password authentication, set an attacker-controlled password, and detach the account from its identity provider (CWE-863 Incorrect Authorization; CVSS 4.4, CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N). Exploitation is heavily constrained - the victim must have an identity-provider-backed account, the attacker must obtain a victim-scoped OAuth token (typically by getting the user to authorize a malicious OAuth application), attack complexity is assessed as high, and deployments without SSO or OAuth applications are not exposed. No public exploit identified at time of analysis, and there is no confirmed active exploitation (Mattermost advisory MMSA-2026-00758).
RemediationAI
No vendor-released patch version is specified in the available data, so consult the Mattermost advisory MMSA-2026-00758 on https://mattermost.com/security-updates to confirm the fixed release for each supported branch (11.7.x, 11.8.x, 11.9.x, 11.10.x) and upgrade to that build as the primary fix; because the vulnerable endpoint (POST /api/v4/users/login/switch) is server-side, upgrading the server is the only complete remediation. In the interim, harden the OAuth attack path that makes exploitation possible: audit all approved OAuth 2.0 applications in the System Console, revoke and rotate OAuth tokens and client secrets for any application that is not strictly required, and restrict the ability to create OAuth applications to trusted administrators - the trade-off is that legitimate integrations will need to be re-authorized and their tokens reissued. Restrict or monitor requests to /api/v4/users/login/switch at the reverse proxy or WAF for accounts known to be SSO-backed; blocking the endpoint outright stops the attack but breaks legitimate account-type switches, so prefer alerting and investigation unless the organization never uses that feature. Finally, alert on unexpected password creation events and on identity-provider detachments for SSO accounts, and re-attach affected accounts to the identity provider and force credential resets if suspicious activity is detected; these detections do not prevent the initial takeover, they only shorten its duration.
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
The flaw is a broken authorization check (CWE-863) in Mattermost's account-type switching logic. Mattermost distinguishes between session types - ordinary user sessions and OAuth application sessions, where a bearer token is minted to a third-party OAuth 2.0 application acting on behalf of a consenting user. The endpoint POST /api/v4/users/login/switch is intended to convert an account between authentication methods, and it is supposed to reject sessions that belong to OAuth applications because such sessions should not be able to change an account's authentication type. In the affected branches (11.7.x, 11.8.x, 11.9.x, 11.10.x), that rejection is missing, so a valid OAuth bearer token for the target user is accepted and can be used to set a local password and unlink the account from the identity provider - converting an SSO-controlled account into an attacker-accessible password account. The CVSS vector (AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N) reflects high integrity impact with no confidentiality or availability loss, network reachability, high attack complexity (obtaining a victim-scoped OAuth token is non-trivial), and high privileges required (a valid token for the target user, not anonymous access). The associated CPE cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:* identifies the Mattermost server product as the affected 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:H/PR:H/UI:N/S:U/C:N/I:H/A:N
Requires a victim-scoped OAuth bearer token (PR:H) and specific SSO-backed conditions (AC:H); yields permanent account takeover (I:H) with no direct data read (C:N) or availability loss (A:N).
Primary rating from Vendor (Mattermost).
CVSS VectorVendor: Mattermost
DescriptionCVE.org
Mattermost versions 11.10.x <= 11.10.0, 11.7.x <= 11.7.9, 11.9.x <= 11.9.1, 11.8.x <= 11.8.5 fail to reject OAuth application sessions in the account type switch endpoint, which allows an attacker with a valid OAuth bearer token for a target user to permanently take over that user's SSO-backed account by setting an attacker-controlled password and detaching the account from its identity provider via a crafted request to POST /api/v4/users/login/switch.. Mattermost Advisory ID: MMSA-2026-00758
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
Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the
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
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-102747
GHSA-hhjm-mg95-jr6g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB