Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-12421

CVE-2025-12421: Mattermost Server Auth Bypass Vulnerability

CVE-2025-12421 is an authentication bypass flaw in Mattermost Server that allows authenticated users to perform account takeover via crafted email during authentication method switching. This post covers technical details, affected versions, impact, and mitigation strategies.

Published: March 31, 2026

CVE-2025-12421 Overview

CVE-2025-12421 is a critical authentication bypass vulnerability affecting Mattermost Server that allows authenticated attackers to perform account takeover attacks. The flaw exists in the authentication flow code exchange mechanism, where the application fails to verify that the token used during the code exchange originates from the same authentication flow. By leveraging a specially crafted email address when switching authentication methods and sending a malicious request to the /users/login/sso/code-exchange endpoint, an attacker can compromise other user accounts.

Critical Impact

This vulnerability enables authenticated users to take over arbitrary accounts on vulnerable Mattermost instances, potentially compromising sensitive communications and organizational data. The attack requires ExperimentalEnableAuthenticationTransfer to be enabled (default: enabled) and RequireEmailVerification to be disabled (default: disabled).

Affected Products

  • Mattermost Server 11.0.x versions up to and including 11.0.2
  • Mattermost Server 10.12.x versions up to and including 10.12.1
  • Mattermost Server 10.11.x versions up to and including 10.11.4
  • Mattermost Server 10.5.x versions up to and including 10.5.12

Discovery Timeline

  • 2025-11-27 - CVE-2025-12421 published to NVD
  • 2025-12-03 - Last updated in NVD database

Technical Details for CVE-2025-12421

Vulnerability Analysis

This vulnerability is classified under CWE-303 (Incorrect Implementation of Authentication Algorithm). The core issue lies in the improper validation of authentication tokens during the SSO code exchange process. When a user switches authentication methods, Mattermost generates a token to facilitate the transition. However, the application fails to bind this token to the originating authentication flow, creating a window for token confusion attacks.

The vulnerability is exploitable over the network by authenticated users without requiring any user interaction. The attack has a changed scope, meaning successful exploitation can impact resources beyond the vulnerable component itself, potentially affecting the entire Mattermost instance and all user accounts.

Root Cause

The root cause of this vulnerability is the failure to implement proper token binding during the authentication flow transition. When users switch authentication methods (such as from email/password to SSO), the /users/login/sso/code-exchange endpoint accepts tokens without verifying their origin. This missing verification allows an attacker to inject tokens from different authentication flows, effectively bypassing the intended authentication controls.

The vulnerability is only exploitable when two configuration conditions are met:

  • ExperimentalEnableAuthenticationTransfer is enabled (this is the default setting)
  • RequireEmailVerification is disabled (this is the default setting)

Attack Vector

The attack vector involves an authenticated user crafting a malicious request to exploit the token verification gap. The attacker manipulates the email address parameter when initiating an authentication method switch, then submits a specially crafted request to the /users/login/sso/code-exchange endpoint. Because the endpoint does not verify that the token corresponds to the legitimate authentication flow, the attacker can associate their session with a victim's account.

The attack flow involves intercepting or crafting requests to the vulnerable endpoint with manipulated parameters, allowing the attacker to complete the authentication process as a different user. This network-based attack requires low attack complexity and only basic authenticated access to the Mattermost instance.

Detection Methods for CVE-2025-12421

Indicators of Compromise

  • Unusual activity on the /users/login/sso/code-exchange endpoint, particularly with malformed or manipulated email parameters
  • Multiple authentication method switches for the same user account within a short time window
  • Authentication events where the originating session does not match expected flow patterns
  • User reports of unauthorized account access or session anomalies

Detection Strategies

  • Monitor and analyze HTTP requests to the /users/login/sso/code-exchange endpoint for abnormal patterns
  • Implement logging for all authentication method switching events and flag rapid sequential switches
  • Deploy web application firewall (WAF) rules to detect and block requests with suspicious email address formats
  • Review Mattermost server logs for authentication anomalies indicating potential exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for authentication-related endpoints in Mattermost
  • Configure alerts for multiple failed or unusual authentication flow transitions
  • Implement real-time monitoring of user session creation events to detect account takeover indicators
  • Establish baseline authentication patterns and alert on significant deviations

How to Mitigate CVE-2025-12421

Immediate Actions Required

  • Update Mattermost Server to the latest patched version immediately
  • Review system configuration to assess current settings for ExperimentalEnableAuthenticationTransfer and RequireEmailVerification
  • Audit recent authentication logs for signs of exploitation or suspicious activity
  • Consider temporarily disabling ExperimentalEnableAuthenticationTransfer if patching cannot be performed immediately

Patch Information

Mattermost has released security updates to address this vulnerability. Administrators should upgrade to versions beyond the affected ranges: 11.0.2, 10.12.1, 10.11.4, and 10.5.12. Detailed patch information and download links are available at the Mattermost Security Updates page.

Workarounds

  • Disable ExperimentalEnableAuthenticationTransfer in the Mattermost configuration to prevent authentication method switching
  • Enable RequireEmailVerification to add an additional verification step that disrupts the attack chain
  • Implement network-level access controls to limit access to the Mattermost server from trusted networks only
  • Use a reverse proxy or WAF to inspect and filter requests to the /users/login/sso/code-exchange endpoint
bash
# Mattermost configuration workaround
# Edit your config.json or use the System Console

# Disable authentication transfer (mitigates the vulnerability)
"ExperimentalSettings": {
    "EnableAuthenticationTransfer": false
}

# Enable email verification (adds additional protection)
"EmailSettings": {
    "RequireEmailVerification": true
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechMattermost

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-303
  • Vendor Resources
  • Mattermost Security Updates
  • Related CVEs
  • CVE-2026-3590: Mattermost Auth Bypass Vulnerability

  • CVE-2026-27769: Mattermost Auth Bypass Vulnerability

  • CVE-2026-3524: Mattermost Plugin Auth Bypass Vulnerability

  • CVE-2026-27656: Mattermost Server Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English