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

Published Nov 27, 2025
·
Updated

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

Affected Software

13 affected componentsFixes available
Mattermost Mattermost<=11.0.2
Mattermost Mattermost<=10.12.1
Mattermost Mattermost<=10.11.4
Mattermost Mattermost<=10.5.12
go/github.com/mattermost/mattermost-server>=10.5.0<10.5.13
10.5.13
go/github.com/mattermost/mattermost-server>=10.11.0<10.11.5
10.11.5
go/github.com/mattermost/mattermost-server>=10.12.0<10.12.2
10.12.2
go/github.com/mattermost/mattermost-server>=11.0.0<11.0.3
11.0.3
go/github.com/mattermost/mattermost/server/v8<8.0.0-20251022210333-acda1fb5dd46
8.0.0-20251022210333-acda1fb5dd46
Mattermost Mattermost Server>=10.5.0<10.5.13
Mattermost Mattermost Server>=10.11.0<10.11.5
Mattermost Mattermost Server>=10.12.0<10.12.2
Mattermost Mattermost Server>=11.0.0<11.0.3

Remediation

Information

Update Mattermost to versions 11.1.0, 11.0.3, 10.12.2, 10.11.5, 10.5.13 or higher.

Event History

Nov 27, 2025
CVE Published
via MITRE·05:47 PM
Data Sourced
via MITRE·05:47 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:30 PM
Data Sourced
via GitHub·06:30 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-12421?

CVE-2025-12421 is rated as a critical severity vulnerability due to its potential for account takeover.

2

How do I fix CVE-2025-12421?

To fix CVE-2025-12421, upgrade Mattermost to versions 10.5.13, 10.11.5, 10.12.2, or 11.0.3 or later.

3

What versions of Mattermost are affected by CVE-2025-12421?

CVE-2025-12421 affects Mattermost versions 11.0.2 and earlier, 10.12.1 and earlier, 10.11.4 and earlier, and 10.5.12 and earlier.

4

What type of attack can CVE-2025-12421 enable?

CVE-2025-12421 can enable an authenticated user to perform an account takeover.

5

Is there a public disclosure for CVE-2025-12421?

Yes, CVE-2025-12421 has been publicly disclosed as part of Mattermost's security updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203