{"id":"CVE-2025-12421","revision":"292ce250c05e425ca29c4391ab87b00a","records":[{"revision":"292ce250c05e425ca29c4391ab87b00a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-12421","aliases":[],"title":"Account Takeover via Code Exchange Endpoint","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).","state":0,"publishedAt":"2025-11-27T17:47:04.944+00:00","modifiedAt":"2026-02-26T16:07:25.754+00:00","affected":[{"ecosystem":"Vendor product","name":"Mattermost","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"product\": \"Mattermost\",\n                    \"vendor\": \"Mattermost\",\n                    \"versions\": [\n                        {\n                            \"lessThanOrEqual\": \"11.0.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"11.0.0\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"lessThanOrEqual\": \"10.12.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"10.12.0\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"lessThanOrEqual\": \"10.11.4\",\n                            \"status\": \"affected\",\n                            \"version\": \"10.11.0\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"lessThanOrEqual\": \"10.5.12\",\n                            \"status\": \"affected\",\n                            \"version\": \"10.5.0\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"11.1.0\",\n                            \"status\": \"unaffected\"\n                        },\n                        {\n                            \"version\": \"11.0.3\",\n                            \"status\": \"unaffected\"\n                        },\n                        {\n                            \"version\": \"10.12.2\",\n                            \"status\": \"unaffected\"\n                        },\n                        {\n                            \"version\": \"10.11.5\",\n                            \"status\": \"unaffected\"\n                        },\n                        {\n                            \"version\": \"10.5.13\",\n                            \"status\": \"unaffected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"severity":"CRITICAL"}],"references":["https://mattermost.com/security-updates"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-12421","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-12421","identifiers":["CVE-2025-12421"]},"retained":false,"historicalAffected":[]}],"coverage":[]}