{"id":"CVE-2025-12419","published":"2025-11-27T15:55:44Z","modified":"2026-02-26T16:07:27Z","title":"Account takeover on OAuth/OpenID-enabled servers","vendor":"Mattermost","product":"Mattermost","tier":"tail","description":{"text":"Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validate OAuth state tokens during OpenID Connect authentication which allows an authenticated attacker with team creation privileges to take over a user account via manipulation of authentication data during the OAuth completion flow. This requires email verification to be disabled (default: disabled), OAuth/OpenID Connect to be enabled, and the attacker to control two users in the SSO system with one of them never having logged into Mattermost.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00367,"percentile":0.31301,"provenance":"source"},"cwes":[{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"references":[{"url":"https://mattermost.com/security-updates","tags":[]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":6.26},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"mattermost","affectedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":[">= 10.12.0, <= 10.12.1",">= 10.11.0, <= 10.11.4",">= 10.5.0, <= 10.5.12",">= 11.0.0, <= 11.0.3"]}],"fixedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":["11.1.0","10.12.2","10.11.5","10.5.13","11.0.4"]}],"solutions":{"items":["Update Mattermost to versions 11.1.0, 10.12.2, 10.11.5, 10.5.13, 11.0.4 or higher."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-12-02T04:55:59.011337Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","vulnerableRanges":["<8.0.0-20251028000919-d3ed703dc833"],"patched":["8.0.0-20251028000919-d3ed703dc833"],"from":["GHSA-3x39-62h4-f8j6","GO-2025-4168"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","vulnerableRanges":[">=10.12.0, <10.12.2",">=10.11.0, <10.11.5",">=10.5.0, <10.5.13",">=11.0.0, <11.0.4","all versions"],"patched":["10.12.2","10.11.5","10.5.13","11.0.4"],"from":["GHSA-3x39-62h4-f8j6","GO-2025-4168"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4168"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4168"],"provenance":"source"}],"summary":{"text":"Mattermost versions 10.12.x up to 10.12.1, 10.11.x up to 10.11.4, 10.5.x up to 10.5.12, and 11.0.x up to 11.0.3 fail to properly validate OAuth state tokens during OpenID Connect authentication. An authenticated attacker with team creation privileges, who controls two users in the SSO system (one of whom has never logged into Mattermost), can take over another user's account by manipulating authentication data during the OAuth completion flow, provided email verification is disabled and OAuth/OpenID Connect is enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:56Z"},"euvd":{"id":"EUVD-2025-199827","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mattermost-cve-2023-5969","parents":[{"from":"CVE-2025-58075","to":"CVE-2025-12419","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/app/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/15364790cc277cfaa372693d2d5442b87f70fd42","https://github.com/mattermost/mattermost/commit/364c2203de00fe0d8424b6b46d6f0eeb02a2539a","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["AuthorizeOAuthUser"]}]}],"packageHistory":[{"cve":"CVE-2025-11794","published":"2025-11-14","fixed":"10.12.1+incompatible","kev":false,"link":{"from":"CVE-2025-11794","to":"CVE-2025-12419","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost-server","fromFixed":"10.12.1+incompatible","toFixed":"10.12.2","daysApart":13}]}},{"cve":"CVE-2025-41436","published":"2025-11-14","fixed":"11.0.0-alpha.1+incompatible","kev":false},{"cve":"CVE-2025-12421","published":"2025-11-27","fixed":"11.0.3","kev":false,"link":{"from":"CVE-2025-12421","to":"CVE-2025-12419","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost-server","fromFixed":"11.0.3","toFixed":"11.0.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20251022210333-acda1fb5dd46","toFixed":"8.0.0-20251028000919-d3ed703dc833","daysApart":0},{"kind":"same-code","provenance":"machine","files":["server/channels/app/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/15364790cc277cfaa372693d2d5442b87f70fd42","https://github.com/mattermost/mattermost/commit/364c2203de00fe0d8424b6b46d6f0eeb02a2539a","https://github.com/mattermost/mattermost/commit/5072bbf689a46b3b97b2373f26149f5891396e6b","https://github.com/mattermost/mattermost/commit/acda1fb5dd46a2f46c76ae67012423c760525eaa"],"basis":"shared file"}]}},{"cve":"CVE-2025-12559","published":"2025-11-27","fixed":"11.0.3","kev":false},{"cve":"CVE-2025-12419","published":"2025-11-27","fixed":"11.0.4","kev":false},{"cve":"CVE-2025-13324","published":"2025-12-17","fixed":"11.0.4+incompatible","kev":false,"link":{"from":"CVE-2025-12419","to":"CVE-2025-13324","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20251028000919-d3ed703dc833","toFixed":"8.0.0-20251031095924-e7e23b94e006","daysApart":20}]}},{"cve":"CVE-2025-55070","published":"2025-11-14","fixed":"11.1.0+incompatible","kev":false},{"cve":"CVE-2025-13767","published":"2025-12-24","fixed":"11.1.1+incompatible","kev":false}],"package":"Go:github.com/mattermost/mattermost-server"}}