{"id":"CVE-2025-58073","published":"2025-10-16T08:44:26Z","modified":"2026-02-26T16:57:26Z","title":"Arbitrary Mattermost Team can be joined by manipulating the OAuth state","vendor":"Mattermost","product":"Mattermost","tier":"tail","description":{"text":"Mattermost versions 10.11.x <= 10.11.1, 10.10.x <= 10.10.2, 10.5.x <= 10.5.10 fail to verify a user has permission to join a Mattermost team using the original invite token which allows any attacked to join any team on a Mattermost server regardless of restrictions via manipulating the OAuth state.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00425,"percentile":0.37673,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://mattermost.com/security-updates","tags":[]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.53},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"mattermost","affectedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":[">= 10.11.0, <= 10.11.1",">= 10.10.0, <= 10.10.2",">= 10.5.0, <= 10.5.10"]}],"fixedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":["10.12.0","10.11.2","10.10.3","10.5.11"]}],"solutions":{"items":["Update Mattermost to versions 10.12.0, 10.11.2, 10.10.3, 10.5.11 or higher."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-22T03:55:16.140294Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","vulnerableRanges":["<8.0.0-20250807174701-e14175eb6539"],"patched":["8.0.0-20250807174701-e14175eb6539"],"from":["GHSA-6q7m-p8cc-998r","GO-2025-4032"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","vulnerableRanges":[">=10.11.0, <10.11.2",">=10.10.0, <10.10.3",">=10.5.0, <10.5.11",">=10.5.0+incompatible, <10.5.11+incompatible",">=10.10.0+incompatible, <10.10.3+incompatible",">=10.11.0+incompatible, <10.11.2+incompatible"],"patched":["10.11.2","10.10.3","10.5.11","10.5.11+incompatible","10.10.3+incompatible","10.11.2+incompatible"],"from":["GHSA-6q7m-p8cc-998r","GO-2025-4032"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4032"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4032"],"provenance":"source"}],"summary":{"text":"The flaw is a missing authorization check in Mattermost, in versions 10.11.x up to 10.11.1, 10.10.x up to 10.10.2, and 10.5.x up to 10.5.10, where the server does not verify that a user has permission to join a team using the original invite token. An attacker who holds a valid account on the server, with no user interaction required, can manipulate the OAuth state to join any team on the server regardless of its join restrictions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:59Z"},"euvd":{"id":"EUVD-2025-34740","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mattermost-cve-2023-5969","parents":[{"from":"CVE-2025-9072","to":"CVE-2025-58073","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250731063404-9eebaadf8f72","toFixed":"8.0.0-20250807174701-e14175eb6539","daysApart":31},{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/2096f975b2c0ebe95fb1078c3b1a527da574796d","https://github.com/mattermost/mattermost/commit/39bd251fe4f66b7e847fc6d653221886347ff160","https://github.com/mattermost/mattermost/commit/13cd76009d31754db46115bddef5287a8a29871a","https://github.com/mattermost/mattermost/commit/9eebaadf8f720788e99b6997337c8df330271326"],"basis":"shared function","functions":["signupWithOAuth"]}]},{"from":"CVE-2024-10214","to":"CVE-2025-58073","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/0d6b1070a26f0b9fc13f7e7fbbe18b6a31570c5a","https://github.com/mattermost/mattermost/commit/2096f975b2c0ebe95fb1078c3b1a527da574796d","https://github.com/mattermost/mattermost/commit/39bd251fe4f66b7e847fc6d653221886347ff160"],"basis":"shared function","functions":["completeOAuth"]}]}],"children":[{"from":"CVE-2025-58073","to":"CVE-2025-58075","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/2096f975b2c0ebe95fb1078c3b1a527da574796d","https://github.com/mattermost/mattermost/commit/39bd251fe4f66b7e847fc6d653221886347ff160","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["completeOAuth","signupWithOAuth"]},{"kind":"similar","provenance":"machine","score":0.87,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2025-9076","published":"2025-09-15","fixed":"10.10.2+incompatible","kev":false},{"cve":"CVE-2025-9078","published":"2025-09-15","fixed":"10.10.2+incompatible","kev":false},{"cve":"CVE-2025-9079","published":"2025-09-19","fixed":"10.10.2+incompatible","kev":false},{"cve":"CVE-2025-58073","published":"2025-10-16","fixed":"10.11.2+incompatible","kev":false},{"cve":"CVE-2025-58075","published":"2025-10-16","fixed":"10.11.2+incompatible","kev":false},{"cve":"CVE-2025-41443","published":"2025-10-16","fixed":"10.11.3","kev":false},{"cve":"CVE-2025-10545","published":"2025-10-16","fixed":"10.11.3+incompatible","kev":false},{"cve":"CVE-2026-20719","published":"2026-03-25","fixed":"11.4.1+incompatible","kev":false,"link":{"from":"CVE-2025-58073","to":"CVE-2026-20719","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost-server","fromFixed":"10.11.2","toFixed":"10.11.2+incompatible","daysApart":160}]}}],"package":"Go:github.com/mattermost/mattermost-server"}}