CVE-2025-12421
November 27, 2025
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 the token used during the code exchange originates from the same authentication flow, which allows an authenticated user to perform account takeover via a specially crafted email address used when switching authentication methods and sending a request to the /users/login/sso/code-exchange endpoint. The vulnerability requires ExperimentalEnableAuthenticationTransfer to be enabled (default: enabled) and RequireEmailVerification to be disabled (default: disabled).
Affected Packages
github.com/mattermost/mattermost-server (GO):
Affected version(s) >=v11.0.1-rc1 <v11.0.3Fix Suggestion:
Update to version v11.0.3github.com/mattermost/mattermost-server (GO):
Affected version(s) >=v10.5.0 <v10.5.13Fix Suggestion:
Update to version v10.5.13github.com/mattermost/mattermost (GO):
Affected version(s) >=v11.0.1-rc1 <v11.0.3Fix Suggestion:
Update to version v11.0.3github.com/mattermost/mattermost (GO):
Affected version(s) >=v10.12.0 <v10.12.2Fix Suggestion:
Update to version v10.12.2github.com/mattermost/mattermost-server (GO):
Affected version(s) >=v10.12.0 <v10.12.2Fix Suggestion:
Update to version v10.12.2github.com/mattermost/mattermost/server/v8 (GO):
Affected version(s) >=v8.0.0-20230429093631-aac4f2337933 <v8.0.0-20251022210333-acda1fb5dd46Fix Suggestion:
Update to version v8.0.0-20251022210333-acda1fb5dd46github.com/mattermost/mattermost (GO):
Affected version(s) >=v10.11.0 <v10.11.5Fix Suggestion:
Update to version v10.11.5github.com/mattermost/mattermost-server (GO):
Affected version(s) >=v10.11.0 <v10.11.5Fix Suggestion:
Update to version v10.11.5github.com/mattermost/mattermost (GO):
Affected version(s) >=v10.5.0 <v10.5.13Fix Suggestion:
Update to version v10.5.13Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9.9
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.10