CVE-2025-12421

Source
https://cve.org/CVERecord?id=CVE-2025-12421
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12421.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-12421
Aliases
Published
2025-11-27T18:15:46.223Z
Modified
2026-03-12T17:35:57.525160Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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 (default: enabled) and RequireEmailVerification to be disabled (default: disabled).

References

Affected packages

Git / github.com/mattermost/mattermost-server

Affected ranges

Type
GIT
Repo
https://github.com/mattermost/mattermost-server
Events
Database specific
{
    "versions": [
        {
            "introduced": "10.5.0"
        },
        {
            "fixed": "10.5.13"
        },
        {
            "introduced": "10.11.0"
        },
        {
            "fixed": "10.11.5"
        },
        {
            "introduced": "10.12.0"
        },
        {
            "fixed": "10.12.2"
        }
    ]
}

Affected versions

@mattermost/client@10.*
@mattermost/client@10.11.0
@mattermost/client@10.12.0
@mattermost/client@10.5.0
@mattermost/types@10.*
@mattermost/types@10.11.0
@mattermost/types@10.12.0
@mattermost/types@10.5.0
mattermost-redux@10.*
mattermost-redux@10.11.0
mattermost-redux@10.12.0
v10.*
v10.11.0
v10.11.0-rc3
v10.11.1
v10.11.1-rc1
v10.11.2
v10.11.2-rc1
v10.11.2-rc2
v10.11.3
v10.11.4
v10.11.4-rc1
v10.11.4-rc2
v10.11.4-rc3
v10.12.0
v10.12.0-rc1
v10.12.0-rc2
v10.12.0-rc3
v10.12.1
v10.12.1-rc1
v10.5.0
v10.5.0-rc6
v10.5.1
v10.5.1-rc1
v10.5.1-rc2
v10.5.10
v10.5.10-rc1
v10.5.10-rc2
v10.5.11
v10.5.11-rc1
v10.5.12
v10.5.12-rc1
v10.5.2
v10.5.3
v10.5.3-rc1
v10.5.4
v10.5.4-rc1
v10.5.4-rc2
v10.5.5
v10.5.5-rc1
v10.5.6
v10.5.6-rc1
v10.5.7
v10.5.8
v10.5.8-rc1
v10.5.9
v10.5.9-rc1
v10.5.9-rc2
v10.5.9-rc3
v10.5.9-rc4

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "11.0.0"
            },
            {
                "fixed": "11.0.3"
            }
        ]
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12421.json"