Advisory

GHSA-fg35-5rf6-qg3g

Also known as: CVE-2026-27656, GO-2026-5360

Summary

Mattermost allows attackers to take over arbitrary user accounts via overly permissive substring matching flaw

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-03-25 18:31 UTC
Modified
2026-06-25 19:56 UTC

Affected packages and fixes

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 11.4.0-rc1, fixed 11.4.1 (semver)

Fixed versions

11.4.1

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 11.3.0-rc1, fixed 11.3.2 (semver)

Fixed versions

11.3.2

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 11.2.0-rc1, fixed 11.2.4 (semver)

Fixed versions

11.2.4

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.11.0-rc1, fixed 10.11.12 (semver)

Fixed versions

10.11.12

Fix

github.com/mattermost/mattermost/server/v8

Go · All systems

Affected

  • introduced 8.0.0-20260105080200-d27a2195068d, fixed 8.0.0-20260217110922-b7d4a1f1f59b (semver)

Fixed versions

8.0.0-20260217110922-b7d4a1f1f59b

Fix

  • Fixed version 8.0.0-20260217110922-b7d4a1f1f59b
    go get github.com/mattermost/mattermost/server/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences