Skip to content
TrackCVE
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2025-12421

Account Takeover via Code Exchange Endpoint

Critical9.9EPSS 0.45%
Published
Updated
Reserved
Assigned by
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).

Timeline

  1. ID reserved

    By Mattermost

  2. · 30 days later

    Published

  3. · 3 months later

    Record updated

Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.

Scores

CVSS scores of CVE-2025-12421, by who scored it
Scored byCVSSScoreVector
MattermostCNA (assigner)3.1Critical9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVDNVD · Analyzed3.1Critical9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS (exploitation in 30 days)
0.45% · top 61% of all CVEs (7 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.9.

Weakness

Affected products

  • Mattermost · Mattermost

    • affected 11.0.0 – ≤ 11.0.2
    • affected 10.12.0 – ≤ 10.12.1
    • affected 10.11.0 – ≤ 10.11.4
    • affected 10.5.0 – ≤ 10.5.12
    • unaffected 11.1.0
    • unaffected 11.0.3
    • unaffected 10.12.2
    • unaffected 10.11.5
    • unaffected 10.5.13

Affected packages

From reviewed advisories of the GitHub Advisory Database.

What to do

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

References (1)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2025-12421 badge
[![CVE-2025-12421](https://trackcve.app/badge/CVE-2025-12421.svg)](https://trackcve.app/cve/CVE-2025-12421)

Record last updated .