CVE-2025-12421
published critical CVSS 3.1 · 9.9Account Takeover via Code Exchange Endpoint
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Mattermost | — | Mattermost11.0.0 through 11.0.2 (affected · semver) · 10.12.0 through 10.12.1 (affected · semver) · 10.11.0 through 10.11.4 (affected · semver) · 10.5.0 through 10.5.12 (affected · semver) · 11.1.0 (unaffected) · 11.0.3 (unaffected) · 10.12.2 (unaffected) · 10.11.5 (unaffected) · 10.5.13 (unaffected) · Other versions: unaffected | Version-specific | Not stated | Mattermost |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- Mattermost · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Mattermost | Mattermost | 11.0.0 through 11.0.2 (affected · semver)10.12.0 through 10.12.1 (affected · semver)10.11.0 through 10.11.4 (affected · semver)10.5.0 through 10.5.12 (affected · semver)11.1.0 (unaffected)11.0.3 (unaffected)10.12.2 (unaffected)10.11.5 (unaffected)10.5.13 (unaffected)Default: unaffected | Mattermost · cna |
Weaknesses
1- CWE-303 CWE-303: Incorrect Implementation of Authentication Algorithm
References
1Provider assertions
2Mattermost · cna
Account Takeover via Code Exchange Endpoint
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8c83957f9239e207a16910e324108fd23871535cdca39faa3952ca7d7c8b1dee
- Ingested
- 23 Sep 2026, 08:36:53 UTC
- Source record
- Official CVE record