BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-12421 in Mattermost Server

Critical 9.9

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.9
EPSS0.7%
EPSS percentile47th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mattermost Mattermost Server ≥ 10.5.0, < 10.5.13 ≥ 10.11.0, < 10.11.5 ≥ 10.12.0, < 10.12.2 ≥ 11.0.0, < 11.0.3
Mattermost Mattermost ≥ 10.5.0, ≤ 10.5.12 ≥ 10.11.0, ≤ 10.11.4 ≥ 10.12.0, ≤ 10.12.1 ≥ 11.0.0, ≤ 11.0.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-12421
BreachSpider IDBS-2025-GLOBAL-033531-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published2025-11-27
Last modified2026-10-19
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-303: CWE-303

Related attack patterns (CAPEC)

CAPEC-90 Reflection Attack in Authentication Protocol via CWE-303

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

{ "executive_summary": "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 are vulnerable to account takeover due to improper verification of tokens during the code exchange process when switching authentication methods.", "attack_vector_detail": "An authenticated user can exploit this vulnerability by using a specially crafted email address to send a request to the /users/login/sso/code endpoint, potentially taking over another user's account.", "affected_components": ["Mattermost versions 11.0.x <= 11.0.2", "Mattermost versions 10.12.x <= 10.12.1", "Mattermost versions 10.11.x <= 10.11.4", "Mattermost versions 10.5.x <= 10.5.12"], "exploitation_likelihood": "CRITICAL", "remediation_priority": "IMM

Vulnerability details: 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 CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Questions

What is CVE-2025-12421?

{ "executive_summary": "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 are vulnerable to account takeover due to improper verification of tokens during the code exchange process when switching authentication methods.", "attack_vector_detail": "An authenticated user can exploit this vulnerability by using a specially crafted email address to send a request to the /users/login/sso/code endpoint, potentially taking over another user's account.",

What is the CVSS score for CVE-2025-12421?

CVE-2025-12421 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.7%.

Is CVE-2025-12421 actively exploited?

No confirmed active exploitation of CVE-2025-12421 as of 2026-10-25.

How do I remediate CVE-2025-12421?

Priority: HIGH. Advisory: https://mattermost.com/security-updates PSIRT: [email protected]

What systems are affected by CVE-2025-12421?

CVE-2025-12421 affects Mattermost Mattermost Server.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mattermost","product":"Mattermost Server","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.