{"id":"CVE-2026-27656","published":"2026-03-25T16:28:29Z","modified":"2026-03-26T13:19:52Z","title":"Account Takeover via Substring Matching in OpenID Connect Authentication","vendor":"Mattermost","product":"Mattermost","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0021,"percentile":0.11373,"provenance":"source"},"cwes":[{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"references":[{"url":"https://mattermost.com/security-updates","tags":["vendor-advisory"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":2.27},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"mattermost","affectedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":[">= 11.4.0, <= 11.4.0",">= 11.3.0, <= 11.3.1",">= 11.2.0, <= 11.2.3",">= 10.11.0, <= 10.11.11"]}],"fixedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":["11.5.0","11.4.1","11.3.2","11.2.4","10.11.12"]}],"solutions":{"items":["Update Mattermost to versions 11.5.0, 11.4.1, 11.3.2, 11.2.4, 10.11.12 or higher."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-26T03:55:33.452102Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","vulnerableRanges":[">=11.4.0-rc1, <11.4.1",">=11.3.0-rc1, <11.3.2",">=11.2.0-rc1, <11.2.4",">=10.11.0-rc1, <10.11.12",">=10.11.0-rc1+incompatible, <10.11.12+incompatible",">=11.2.0-rc1+incompatible, <11.2.4+incompatible",">=11.3.0-rc1+incompatible, <11.3.2+incompatible",">=11.4.0-rc1+incompatible, <11.4.1+incompatible"],"patched":["11.4.1","11.3.2","11.2.4","10.11.12","10.11.12+incompatible","11.2.4+incompatible","11.3.2+incompatible","11.4.1+incompatible"],"from":["GHSA-fg35-5rf6-qg3g","GO-2026-5360"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","vulnerableRanges":[">=8.0.0-20260105080200-d27a2195068d, <8.0.0-20260217110922-b7d4a1f1f59b"],"patched":["8.0.0-20260217110922-b7d4a1f1f59b"],"from":["GHSA-fg35-5rf6-qg3g","GO-2026-5360"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5360"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5360"],"provenance":"source"}],"summary":{"text":"The flaw is in Mattermost's OpenID Connect authentication, specifically in the user identity comparison logic (IsSameUser) used during the user discovery flow, which fails to validate identity correctly and relies on substring matching. An attacker who can reach the affected Mattermost server over the network, after authenticating and with a user interaction, and under the high-complexity conditions of this flaw, can take over arbitrary user accounts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:57Z"},"euvd":{"id":"EUVD-2026-15805","exploited":false,"provenance":"source"}}