Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-16453 Overview
CVE-2026-16453 is a high-severity authorization flaw in Mattermost affecting SAML single sign-on handling. The platform fails to verify the integrity of the SAML RelayState POST parameter during authentication. An authenticated SAML user can forge the team_id or invite_id fields inside RelayState to join any team, including invite-only teams. The weakness is tracked as [CWE-472: External Control of Assumed-Immutable Web Parameter] and documented in Mattermost advisory MMSA-2026-00727.
Critical Impact
Any authenticated SAML user can bypass team access controls and gain membership to invite-only teams by tampering with the RelayState parameter.
Affected Products
- Mattermost 11.10.x versions <= 11.10.0
- Mattermost 11.9.x versions <= 11.9.1 and 11.8.x versions <= 11.8.5
- Mattermost 11.7.x versions <= 11.7.9
Discovery Timeline
- 2026-10-16 - CVE-2026-16453 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-16453
Vulnerability Analysis
Mattermost supports SAML-based single sign-on and uses the RelayState parameter to preserve application context across the identity provider round-trip. The server reads attacker-influenced fields from RelayState, specifically team_id and invite_id, and acts on them without validating that the values originated from the server. Because the parameter is neither signed nor bound to the authentication request, an authenticated user can supply arbitrary identifiers and be enrolled into teams they were not invited to.
The flaw sits in the authorization layer rather than authentication. The user still proves identity to the identity provider, but the application trusts a client-controlled hint to decide team membership. Invite-only teams, which typically rely on administrator-issued invites, lose their access boundary.
Root Cause
The root cause is improper trust of a client-controlled web parameter, classified as [CWE-472]. The RelayState value is assumed immutable but is in fact fully modifiable by the browser. Mattermost does not attach an integrity check, HMAC, or server-side mapping between the opaque token and the team or invite it represents.
Attack Vector
Exploitation requires an authenticated SAML user and network reachability to the Mattermost instance. The attacker initiates a SAML login flow and intercepts or crafts the POST that carries RelayState. They replace the embedded team_id or invite_id with the identifier of a target team, including private, invite-only teams. After the identity provider returns the assertion, the server honors the forged context and adds the user to the targeted team. No elevated privileges or user interaction from the victim are needed.
See the Mattermost Security Updates advisory for vendor technical details.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-16453
Indicators of Compromise
- Unexpected TeamMember creation events for invite-only teams without a corresponding administrator invite record.
- SAML authentication requests where the RelayState payload contains team_id or invite_id values that do not match any server-issued invite.
- Audit log entries showing the same user account joining multiple teams in rapid succession following SAML logins.
Detection Strategies
- Correlate Mattermost audit logs for team.join or team.add_user actions with the invite issuance records to flag joins that lack a matching invite.
- Baseline normal RelayState structure for your deployment and alert on deviations or hand-crafted values.
- Review SAML Service Provider logs for repeated login attempts from a single principal with varying RelayState contents.
Monitoring Recommendations
- Forward Mattermost application and audit logs to a centralized analytics platform and retain SAML transaction metadata.
- Alert on membership changes to sensitive or executive-only teams and require review of the originating authentication event.
- Track volume of team joins per account per hour; investigate accounts that spike after a SAML login.
How to Mitigate CVE-2026-16453
Immediate Actions Required
- Upgrade Mattermost to a fixed release above 11.10.0, 11.9.1, 11.8.5, or 11.7.9 on the respective branch.
- Audit team membership for invite-only teams and remove accounts that were not provisioned through a legitimate invite.
- Rotate any outstanding invite_id tokens issued for sensitive teams.
Patch Information
Mattermost has released fixed builds for the 11.7, 11.8, 11.9, and 11.10 branches. Refer to the Mattermost Security Updates page and advisory MMSA-2026-00727 for exact fixed version numbers and release notes. Apply the vendor patch rather than attempting source-level workarounds.
Workarounds
- If immediate patching is not possible, temporarily restrict SAML sign-on to a trusted user population and increase scrutiny of team membership changes.
- Enforce administrator approval workflows for joining sensitive teams until the upgrade is applied.
- Monitor the Mattermost audit log in real time for anomalous team membership growth.
# Verify the running Mattermost server version before and after patching
curl -sS https://<mattermost-host>/api/v4/system/ping?get_server_status=true
# Review recent team-join events in the audit log (adjust path to your deployment)
grep -E 'team\.(join|add_user)' /opt/mattermost/logs/audit.log | tail -n 200
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

