CVE-2025-12421 | Account Takeover via Code Exchange Endpoint

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

Published: 2025-11-27 Last update: 2025-12-03 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-12421 is rated Moderate Risk (46.8/100): CVSS Critical severity, with low exploitation likelihood (EPSS 0.07%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-12421

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-11-28 0.07%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-12421

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.9 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.1 6.0 [email protected]

Weakness enumeration for CVE-2025-12421

GitHub Security Advisory for CVE-2025-12421

GHSA-mp6x-97xj-9x62 · Severity: critical · Ecosystem: go — Mattermost fails to to verify the token used during code exchange

Affected software / configurations for CVE-2025-12421

Vendor Product Version Raw CPE
mattermost mattermost_server >= 10.5.0, < 10.5.13 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.11.0, < 10.11.5 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.12.0, < 10.12.2 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 11.0.0, < 11.0.3 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*

References for CVE-2025-12421

URL Tags
https://mattermost.com/security-updates Vendor Advisory
cvelogic Threat Intelligence