CVE-2026-19076

Mattermost fails to reject OAuth application sessions in account type switch, allowing account takeover via bearer token

Published Oct 16, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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

Analysis

AI-generated

Technical 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.

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 available
References
History
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
Type Values Removed Values Added
First Time appeared Mattermost
Mattermost mattermost
Vendors & Products Mattermost
Mattermost mattermost
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Mattermost
Published
Updated
Oct 16, 2026, 2:06 PM
Reserved
Aug 6, 2026, 9:52 AM
Status
Analyzed
Published
Oct 16, 2026, 8:17 AM
Modified
Oct 27, 2026, 8:57 PM