Skip to main content

CVE-2025-12419 — Vulnerability in mattermost/mattermost-server

CRITICAL

Mattermost fails to properly validate OAuth state tokens during OpenID Connect authentication

Published November 27, 2025Updated December 17, 2025Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.66%). Schedule for your next planned update.

Does your project use an affected github.com/mattermost/mattermost-server version?

Paste your go.sum to check it for CVE-2025-12419 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validate OAuth state tokens during OpenID Connect authentication which allows an authenticated attacker with team creation privileges to take over a user account via manipulation of authentication data during the OAuth completion flow. This requires email verification to be disabled (default: disabled), OAuth/OpenID Connect to be enabled, and the attacker to control two users in the SSO system with one of them never having logged into Mattermost.

Advisory Timeline

  • First published November 27, 2025 (364 days ago).
  • Last revised December 17, 2025 — 19 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/mattermost/mattermost-server to 11.0.4 or later
go get github.com/mattermost/mattermost-server@v11.0.4
Go
Update github.com/mattermost/mattermost-server to 10.12.2 or later
go get github.com/mattermost/mattermost-server@v10.12.2
Go
Update github.com/mattermost/mattermost-server to 10.11.5 or later
go get github.com/mattermost/mattermost-server@v10.11.5
Go
Update github.com/mattermost/mattermost-server to 10.5.13 or later
go get github.com/mattermost/mattermost-server@v10.5.13
Go
Update github.com/mattermost/mattermost/server/v8 to 8.0.0-20251028000919-d3ed703dc833 or later
go get github.com/mattermost/mattermost/server/v8@v8.0.0-20251028000919-d3ed703dc833

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: Go (2).

PackageFixed In
github.com/mattermost/mattermost-server Go · Affected: All versions11.0.4
github.com/mattermost/mattermost-server Go · Affected: All versions10.12.2
github.com/mattermost/mattermost-server Go · Affected: All versions10.11.5
github.com/mattermost/mattermost-server Go · Affected: All versions10.5.13
github.com/mattermost/mattermost/server/v8 Go · Affected: All versions8.0.0-20251028000919-d3ed703dc833

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-12419?
Mattermost fails to properly validate OAuth state tokens during OpenID Connect authentication. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2025-12419?
CVE-2025-12419 affects github.com/mattermost/mattermost-server and github.com/mattermost/mattermost/server/v8. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-12419 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.66%
EPSS percentile: 46.8

This is a below-median EPSS score — only 46.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-3x39-62h4-f8j6
GO-2025-4168

Related CVEs

  • CVE-2025-12421
    CRITICAL

    Mattermost fails to to verify the token used during code exchange

  • CVE-2025-4981
    CRITICAL

    Mattermost allows authenticated users to write files to arbitrary locations

  • CVE-2026-7387
    HIGH

    Mattermost doesn't require role-management authorization when setting the scheme_admin flag on group syncable link and patch endpoints

  • CVE-2025-58073
    HIGH

    Mattermost has a Missing Authorization vulnerability

  • CVE-2026-6961
    HIGH

    Mattermost doesn't sanitize FileInfo.Name received from federated peers during shared channel file sync

  • CVE-2025-9079
    HIGH

    Mattermost Path Traversal vulnerability

  • CVE-2025-58075
    HIGH

    Mattermost has a Missing Authorization vulnerability

  • CVE-2026-5740
    HIGH

    Mattermost doesn't properly validate msgpack-encoded WebSocket frames before memory allocation

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum