Skip to main content
CVE Vulnerability Database

CVE-2026-5163: Mattermost Server Info Disclosure Flaw

CVE-2026-5163 is an information disclosure vulnerability in Mattermost Server that allows authenticated attackers to read private channel and direct message content. This article covers technical details, affected versions, and mitigations.

Published:

CVE-2026-5163 Overview

CVE-2026-5163 is a missing authorization vulnerability [CWE-862] affecting Mattermost Server versions 11.5.x up to and including 11.5.1. The flaw resides in the AI-assisted message rewrite functionality, which fails to verify channel membership before returning post content. An authenticated attacker can craft a request to the post rewrite endpoint and read messages from private channels and direct messages they do not belong to. Mattermost tracks the issue under advisory MMSA-2026-00645.

Critical Impact

Authenticated users can read confidential thread content from private channels and direct messages without being a member, breaking the core access control boundary of the collaboration platform.

Affected Products

  • Mattermost Server 11.5.0
  • Mattermost Server 11.5.1
  • Mattermost Server versions 11.5.x at or below 11.5.1

Discovery Timeline

  • 2026-05-18 - CVE-2026-5163 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-5163

Vulnerability Analysis

The vulnerability exists in the AI-assisted post rewrite feature of Mattermost Server. When the server processes a rewrite request, it retrieves the target post content and passes it to the rewrite pipeline. The authorization layer omits a channel membership check against the requesting user. As a result, any authenticated user who can supply a valid post identifier receives the post body in the response.

This is a classic broken access control issue mapped to [CWE-862] Missing Authorization. The endpoint correctly authenticates the session token but does not authorize access to the underlying resource. Private channel posts and direct message threads are intended to be readable only by channel members. The rewrite endpoint bypasses this constraint.

The attack requires only low privileges and no user interaction. The integrity and availability of the system are not affected, but confidentiality of private conversations is fully exposed within the targeted instance.

Root Cause

The root cause is a missing server-side check that compares the requesting user identity against the membership list of the channel containing the referenced post. The handler invokes the AI rewrite path before enforcing read access on the source post, treating possession of a post ID as sufficient grounds to return its content.

Attack Vector

An authenticated attacker enumerates or guesses post identifiers for messages outside their visible channels. The attacker sends a crafted HTTP request to the AI post rewrite endpoint referencing a target post. The server returns the rewritten content, which discloses the original message text from the private channel or direct message thread.

No verified public proof-of-concept code is available. Refer to the Mattermost Security Updates advisory for technical details.

Detection Methods for CVE-2026-5163

Indicators of Compromise

  • Unusual volume of requests to the AI post rewrite API endpoint from a single authenticated user account
  • Rewrite requests referencing post IDs that belong to channels the requesting user is not a member of
  • Application logs showing successful post retrievals where the requester's user ID is absent from the associated channel membership table

Detection Strategies

  • Audit Mattermost application logs for AI rewrite endpoint calls and cross-reference the requester against ChannelMembers for the source post
  • Baseline normal usage of AI features per user and alert on statistical anomalies in request rate or breadth of accessed channels
  • Correlate authentication events with rewrite endpoint activity to identify accounts exhibiting reconnaissance behavior

Monitoring Recommendations

  • Forward Mattermost server access and audit logs to a centralized log platform for retention and correlation
  • Monitor for HTTP 200 responses on rewrite endpoints paired with post IDs that resolve to private channels
  • Track failed and successful access patterns on AI endpoints to identify enumeration attempts against post identifiers

How to Mitigate CVE-2026-5163

Immediate Actions Required

  • Upgrade Mattermost Server to a patched release above version 11.5.1 as specified in the Mattermost security advisory
  • Review audit logs for prior abuse of the AI post rewrite endpoint by authenticated users
  • Rotate any sensitive credentials or secrets that may have been shared in private channels or direct messages on affected instances

Patch Information

Mattermost has published remediation guidance in advisory MMSA-2026-00645. Administrators should consult the Mattermost Security Updates page for the fixed version corresponding to the 11.5.x branch and apply the upgrade promptly.

Workarounds

  • Disable AI-assisted message rewrite features in the System Console until the patch is applied
  • Restrict access to AI integrations through role-based permissions where supported by the deployment
  • Place the Mattermost API behind a reverse proxy that rate-limits requests to AI endpoints to slow enumeration attempts

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.