Mattermost fails to reject OAuth application sessions in account type switch, allowing account takeover via bearer token
Mattermost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Mattermost Mattermost |
|
|
Mattermost
| Product | Affected | Fixed in |
|---|---|---|
| Mattermost Mattermost |
|
|
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
From the CVE record · Mattermost
Affected Mattermost versions fail to reject OAuth application sessions at the account type switch endpoint. An attacker with a valid OAuth bearer token for a target user can send a crafted request to set an attacker-controlled password and detach the user's SSO-backed account from its identity provider, permanently taking over the account.
Operators running Mattermost 11.10.x through 11.10.0, 11.7.x through 11.7.9, 11.9.x through 11.9.1, or 11.8.x through 11.8.5 should check their installations.