External risk intelligence

Mattermost OpenID Connect State Token Vulnerability Allows Account Takeover

CVE advisorySeverity: CRITICAL (CVSS 9.9)

CVE-2025-12419

Mattermost is a collaboration platform frequently deployed as an internet-facing web application. While the vulnerability requires specific configuration conditions (OAuth enabled and email verification disabled), the product role as a primary communication and identity integration gateway makes it commonly accessible via public network endpoints in many organizational deployments.

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A critical security vulnerability has been identified in Mattermost, a collaboration platform, related to how it handles user authentication through OpenID Connect. This issue could allow an attacker to take over user accounts under specific, though not uncommon, system configurations. The main concern is confirming if our environment is exposed and verifying its relevance.

  • Authentication flaw allows account takeover.
  • Critical vulnerability in collaboration platform.
  • Confirm relevance and exposure.

Attack Path

How an attacker could exploit the issue

An attacker could target an organization using Mattermost, leveraging its OpenID Connect authentication. By creating a user in the connected SSO system and having access to Mattermost with team creation privileges, the attacker could manipulate the authentication process. This manipulation, combined with specific Mattermost settings, allows them to impersonate another user and gain unauthorized access to their account.

  • Attacker needs limited Mattermost access.
  • Trigger involves OAuth completion flow.
  • Risk is full account takeover.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an authenticated attacker with team creation privileges to take over another user's account when email verification is disabled and OpenID Connect authentication is enabled. The attacker could manipulate authentication data during the OAuth completion flow to impersonate a user, provided they control two users in the Single Sign-On system, with one of them never having logged into Mattermost before.

  • User accounts and their associated data.
  • Through authentication data manipulation.
  • Account takeover and unauthorized access.

Operational Fix

Recommended remediation, mitigation, and detection steps

The Mattermost platform's security team, likely working with infrastructure or application owners, should prioritize identifying all instances of the affected Mattermost Server. The immediate first step is to confirm if OAuth and OpenID Connect are enabled and if email verification is disabled on these instances, as these are prerequisites for exploitation. Once identified and confirmed as active, the team should assess business criticality and plan remediation based on the potential for account takeover.

  • Accountable teams: Mattermost platform and security.
  • Verify configuration: OAuth, OpenID Connect, email verification status.
  • Action: Plan risk-based remediation, coordinate with vendors.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Mattermost Server?

Mattermost is an open-source collaboration platform designed for team communication, offering features like messaging, file sharing, and project management. It functions as a central workspace that often integrates with external identity providers, such as OpenID Connect or OAuth services, to manage how users log in and authenticate across the organization.

How does CVE-2025-12419 impact authentication?

This vulnerability is classified as CWE-303, which relates to improper validation of credentials. In this specific case, Mattermost fails to correctly verify OAuth state tokens during the OpenID Connect login process. This weakness allows an attacker to manipulate authentication data during the OAuth flow to impersonate another user and gain unauthorized access to their account.

Do I need specific settings for this to be triggered?

Yes. This flaw requires a specific environment setup to work. It only triggers when OpenID Connect is enabled and email verification is disabled. Furthermore, an attacker must possess team creation privileges within Mattermost and control two distinct accounts in the connected Single Sign-On (SSO) system, one of which must have never previously logged into the platform.

How relevant is this vulnerability to my network?

According to Halo Surface Signal, Mattermost is frequently deployed as an internet-facing web application. Because the platform acts as a primary communication and identity gateway, it is often accessible via public network endpoints, increasing the likelihood that it could be a target for attackers seeking to exploit authentication workflows.

When should I take action to secure my Mattermost instance?

You should prioritize this immediately by first identifying all running instances of the affected software versions. Verify your current configuration to see if OAuth or OpenID Connect is enabled and if email verification is turned off. If these settings match the prerequisites for the vulnerability, plan for a security update to address the issue and prevent potential account takeovers.

References