CVE-2025-12421: Account Takeover via Code Exchange Endpoint
CVE-2025-12421 affects 17 listed versions of Mattermost in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Mattermost
17 of 250 listed versions are affected. Fixed in 11.0.3, 10.12.2, 10.5.13. The newest release, 12.1.0, is not affected.
11.0.2 11.0.0 10.12.1 10.12.0 10.5.12 10.5.11 10.5.10 10.5.9 10.5.8 10.5.7 10.5.6 10.5.5 10.5.4 10.5.3 10.5.2 10.5.1 10.5.0
What it is
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).
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (Mattermost)
Published by Mattermost on 27 November 2025. Last changed 19 October 2026.
Sources
Check one version you run: look CVE-2025-12421 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.