CVE-2025-12421: V8 · Mattermost fails to to verify the token used during code exchange
Affects github.com/mattermost/mattermost/server/v8Source GCVE Database
Not known to be exploited · CVSS 9.9 Critical : upgrade to 8.0.0-20251022210333-acda1fb5dd46 as a priority.
Data as of 21 Nov 2026, 03:44 UTC
- Patch
- Available – fixed in 8.0.0-20251022210333-acda1fb5dd46, 11.0.3, 10.12.2 +2
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/mattermost/mattermost/server/v8 | Affected
| Fixed in
|
| Gogithub.com/mattermost/mattermost-server | Affected
| Fixed in
|
| Gogithub.com/mattermost/mattermost-server | Affected
| Fixed in
|
| Gogithub.com/mattermost/mattermost-server | Affected
| Fixed in
|
| Gogithub.com/mattermost/mattermost-server | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied immediately. Upgrade to Mattermost versions 8.0.0-20251022210333-acda1fb5dd46, 10.5.13, 10.11.5, 10.12.2, or 11.0.3 or later. Additionally, review configuration settings: consider disabling ExperimentalEnableAuthenticationTransfer or enabling RequireEmailVerification to reduce exposure if patching is not immediately possible.
Description
Mattermost versions 10.5.x through 11.0.2 have a vulnerability where the token used during the code exchange in the authentication flow is not properly verified. This flaw allows an authenticated user to perform an account takeover by exploiting the /users/login/sso/code-exchange endpoint with a specially crafted email address. The vulnerability requires specific configuration settings: ExperimentalEnableAuthenticationTransfer enabled (default enabled) and RequireEmailVerification disabled (default disabled).
References
- nvd.nist.gov/vuln/detail/CVE-2025-12421 (opens in a new tab)
- github.com/mattermost/mattermost/commit/5072bbf689a46b3b97b2373f26149f5891396e6b (opens in a new tab)
- github.com/mattermost/mattermost/commit/acda1fb5dd46a2f46c76ae67012423c760525eaa (opens in a new tab)
- github.com/mattermost/mattermost/commit/f361e7d75a7ab9df5a2106e1ceb919b94b55e41d (opens in a new tab)
- github.com/mattermost/mattermost/commit/feb598ed2b7ac3cb78a253b032ad7e4628b0de00 (opens in a new tab)
- github.com/mattermost/mattermost (opens in a new tab)
- mattermost.com/security-updates (opens in a new tab)