Account Takeover via Substring Matching in OpenID Connect Authentication
Mattermost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost-server Go |
|
Mattermost
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost-server Go |
|
≥ 11.4.0-rc1+incompatible · < 11.4.1+incompatible
|
| github.com/mattermost/mattermost/server/v8 Go |
|
|
| github.com/mattermost/mattermost-server/v5 Go |
| No fix yet |
| github.com/mattermost/mattermost-server/v6 Go |
| No fix yet |
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
From the CVE record · Mattermost
Affected Mattermost versions do not properly validate user identity in the OpenID IsSameUser() comparison. An attacker can take over arbitrary user accounts when the user discovery flow applies overly permissive substring matching. The input does not specify authentication or user-interaction requirements.
Engineers running Mattermost 11.4.x through 11.4.0, 11.3.x through 11.3.1, 11.2.x through 11.2.3, or 10.11.x through 10.11.11, or using the listed affected Go packages, should check their versions.