{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-12421","id":"CVE-2025-12421","title":"Account Takeover via Code Exchange Endpoint","description":"Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that the token used during the code exchange originates from the same authentication flow, which allows an authenticated user to perform account takeover via a specially crafted email address used when switching authentication methods and sending a request to the /users/login/sso/code-","descriptionLong":"Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that the token used during the code exchange originates from the same authentication flow, which allows an authenticated user to perform account takeover via a specially crafted email address used when switching authentication methods and sending a request to the /users/login/sso/code-exchange endpoint. The vulnerability requires ExperimentalEnableAuthenticationTransfer to be enabled (default: enabled) and RequireEmailVerification to be disabled (default: disabled).","published":"2025-11-27T17:47:04.944Z","updated":"2026-10-28T02:30:22.000725128Z","reserved":"2025-10-28T16:54:12.491Z","status":"Analyzed","rejected":false,"assigner":"Mattermost","metric":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"Mattermost"},"metrics":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"Mattermost"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mattermost.com"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["Mattermost"],"affectedProducts":[{"vendor":"Mattermost","product":"Mattermost","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"11.0.2","status":"affected","version":"11.0.0","versionType":"semver"},{"lessThanOrEqual":"10.12.1","status":"affected","version":"10.12.0","versionType":"semver"},{"lessThanOrEqual":"10.11.4","status":"affected","version":"10.11.0","versionType":"semver"},{"lessThanOrEqual":"10.5.12","status":"affected","version":"10.5.0","versionType":"semver"},{"version":"11.1.0","status":"unaffected"},{"version":"11.0.3","status":"unaffected"},{"version":"10.12.2","status":"unaffected"},{"version":"10.11.5","status":"unaffected"},{"version":"10.5.13","status":"unaffected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/mattermost/mattermost/server/v8","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8","ranges":["<8.0.0-20251022210333-acda1fb5dd46"],"fixed":["8.0.0-20251022210333-acda1fb5dd46"],"advisory":"GHSA-mp6x-97xj-9x62"},{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server","purl":"pkg:golang/github.com/mattermost/mattermost-server","ranges":[">=11.0.0 <11.0.3",">=10.12.0 <10.12.2",">=10.11.0 <10.11.5",">=10.5.0 <10.5.13","all versions"],"fixed":["11.0.3","10.12.2","10.11.5","10.5.13"],"advisory":"GHSA-mp6x-97xj-9x62"},{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","ranges":["all versions"],"fixed":[],"advisory":"GO-2025-4170"},{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server/v6","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6","ranges":["all versions"],"fixed":[],"advisory":"GO-2025-4170"}],"cwes":["CWE-303","CWE-287"],"aliases":["GHSA-mp6x-97xj-9x62","GO-2025-4170"],"references":[{"url":"https://mattermost.com/security-updates","tags":["Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12421.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12421","tags":["advisory"]},{"url":"https://github.com/mattermost/mattermost/commit/5072bbf689a46b3b97b2373f26149f5891396e6b","tags":["web"]},{"url":"https://github.com/mattermost/mattermost/commit/acda1fb5dd46a2f46c76ae67012423c760525eaa","tags":["web"]},{"url":"https://github.com/mattermost/mattermost/commit/f361e7d75a7ab9df5a2106e1ceb919b94b55e41d","tags":["web"]},{"url":"https://github.com/mattermost/mattermost/commit/feb598ed2b7ac3cb78a253b032ad7e4628b0de00","tags":["web"]},{"url":"https://github.com/mattermost/mattermost","tags":["package"]},{"url":"https://github.com/advisories/GHSA-mp6x-97xj-9x62","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00446,"epssPercentile":0.39492,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-12421","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12421","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-12421","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mp6x-97xj-9x62","ok":true,"note":"GHSA-mp6x-97xj-9x62"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-12421","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["chrome"],"critical":["CVSS 9.9 in a widely used technology"],"attention":null}