Description
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
Published: 2026-10-16
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Account takeover via bearer token
Action: Immediate Patch
AI Analysis

Impact

Mattermost versions 11.10.x through 11.8.x unconditionally accept OAuth application sessions when a user switches account type. An attacker possessing a valid OAuth bearer token for a target user can exploit this flaw by sending a crafted POST /api/v4/users/login/switch request, setting a new password, and detaching the account from its identity provider. This results in permanent takeover of the user’s SSO‑backed account.

Affected Systems

Mattermost Mattermost Versions affected include 11.10.x up to and including 11.10.0, 11.7.x up to 11.7.9, 11.9.x up to 11.9.1, and 11.8.x up to 11.8.5.

Risk and Exploitability

The CVSS score of 4.4 indicates medium severity, and the EPSS score of 0.00197 shows a probability of exploitation of less than 1%. The vulnerability is not listed in CISA's KEV catalog. Based on the description, the likely attack vector is an attacker who already has a valid OAuth bearer token for the target user, which can be obtained through initial compromise or social engineering. Once the token is in hand, the attacker can permanently take over the account by using the switch endpoint to set a new password and detach the identity provider.

Generated by OpenCVE AI on October 16, 2026 at 15:19 UTC.

Remediation

Vendor Solution

Update Mattermost to versions 11.11.0, 11.10.1, 11.7.10, 11.9.2, 11.8.6 or higher.


OpenCVE Recommended Actions

  • Upgrade Mattermost to any of the following versions: 11.11.0, 11.10.1, 11.7.10, 11.9.2, 11.8.6 or higher.
  • Disable or restrict the account type switch endpoint for OAuth users by adjusting Mattermost configuration or applying appropriate firewall rules.
  • Regenerate or revoke existing OAuth bearer tokens for all users and require re‑authentication.

Generated by OpenCVE AI on October 16, 2026 at 15:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Tue, 27 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Mattermost mattermost Server
CPEs cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
cpe:2.3:a:mattermost:mattermost_server:11.10.0:*:*:*:*:*:*:*
Vendors & Products Mattermost mattermost Server

Fri, 23 Oct 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Mattermost
Mattermost mattermost
Vendors & Products Mattermost
Mattermost mattermost

Fri, 16 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 16 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
Description 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
Title Mattermost fails to reject OAuth application sessions in account type switch, allowing account takeover via bearer token
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Mattermost Mattermost Mattermost Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Mattermost

Published:

Updated: 2026-10-16T14:06:23.946Z

Reserved: 2026-08-06T09:52:03.711Z

Link: CVE-2026-19076

cve-icon Vulnrichment

Updated: 2026-10-16T14:06:15.677Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-16T08:17:13.177

Modified: 2026-10-27T20:57:34.380

Link: CVE-2026-19076

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T10:15:17Z

Weaknesses