CVE-2025-12421

CVE-2025-12421 is a critical-severity vulnerability in Mattermost Mattermost Server with a CVSS 3.x base score of 9.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-303.

Key facts

Description

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

Frequently asked questions

What is CVE-2025-12421?
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).
How severe is CVE-2025-12421?
CVE-2025-12421 has a CVSS 3.x base score of 9.9, rated critical severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2025-12421 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (23rd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-12421?
CVE-2025-12421 affects Mattermost Mattermost Server. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-12421?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2025-12421 have an EU (EUVD) identifier?
Yes. CVE-2025-12421 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-199833.
When was CVE-2025-12421 published?
CVE-2025-12421 was published on 2025-11-27 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Mattermost Mattermost Server

All CVEs affecting Mattermost Mattermost Server →

Other CWE-303 vulnerabilities

Browse all CWE-303 vulnerabilities →