Severity by source
AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Lifecycle Timeline
4DescriptionCVE.org
Mattermost versions 11.4.x <= 11.4.0, 11.3.x <= 11.3.1, 11.2.x <= 11.2.3, 10.11.x <= 10.11.11 fail to properly validate user identity in the OpenID {{IsSameUser()}} comparison logic, which allows an attacker to take over arbitrary user accounts via an overly permissive substring matching flaw in the user discovery flow.. Mattermost Advisory ID: MMSA-2026-00590
AnalysisAI
Mattermost fails to properly validate user identity in OpenID Connect authentication logic due to an overly permissive substring matching flaw in the IsSameUser() comparison function, allowing attackers with high privileges to take over arbitrary user accounts through the user discovery flow. This affects Mattermost versions 10.11.0-10.11.11, 11.2.0-11.2.3, 11.3.0-11.3.1, and 11.4.0. While the CVSS score of 5.7 is moderate and requires high privilege access and user interaction, the core impact is account takeover with full account compromise possible.
Technical ContextAI
The vulnerability resides in Mattermost's OpenID Connect (OIDC) authentication handler, specifically within the identity validation logic that compares user identities during SSO flows. The affected component uses a substring matching comparison rather than strict equality checking in the IsSameUser() function, which violates CWE-303 (Incorrect Implementation of Authentication Algorithm). The CPE string cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:* indicates the core Mattermost application is vulnerable across multiple major and minor versions. The vulnerability exists in the user discovery mechanism that processes OpenID claims, allowing attackers to craft requests that partially match legitimate user identifiers and bypass identity verification controls.
RemediationAI
Immediately upgrade Mattermost to patched versions: 10.11.12 or later for the 10.11.x line, 11.2.4 or later for the 11.2.x line, 11.3.2 or later for the 11.3.x line, and 11.4.1 or later for the 11.4.x line. The primary fix involves correcting the IsSameUser() comparison logic to use strict equality matching rather than substring matching. Until patches can be deployed, restrict OpenID Connect authentication to trusted identity providers and limit administrative access to SSO configuration. Review OIDC claims and user discovery API logs for anomalous patterns indicating exploitation attempts. Consider temporarily disabling OpenID authentication in non-production environments until patching is complete. Consult the Mattermost security advisory at https://mattermost.com/security-updates for detailed guidance.
More in Mattermost
View allDenial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s
A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto
Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w
Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf
Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
Mattermost versions 9.9.x <= 9.9.0, 9.5.x <= 9.5.6, 9.7.x <= 9.7.5 and 9.8.x <= 9.8.1 fail to disallow unsolicited invit
Dex is a federated OpenID Connect provider written in Go. Rated critical severity (CVSS 9.6), this vulnerability is remo
Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t
Mattermost 6.3.0 and earlier fails to properly sanitize the HTML content in the email invitation sent to guest users, wh
Mattermost fails to invalidate existing authorization codes when deauthorizing an OAuth2 app, allowing an attacker posse
Privilege escalation in Mattermost server (11.6.x, 11.5.x, and 10.11.x branches) allows a low-privileged user holding gr
Authorization bypass in Mattermost Plugin Legal Hold versions <=1.1.4 allows authenticated attackers to manipulate legal
Same technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-15805
GHSA-fg35-5rf6-qg3g