{
  "id": "CVE-2025-12421",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-12421",
  "published_at": "2025-11-27T17:47:04.944Z",
  "title": "Account Takeover via Code Exchange Endpoint",
  "vendor": "Mattermost",
  "product": "Mattermost",
  "cvss": {
    "score": 9.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Mattermost versions 11.0.x \u003c= 11.0.2, 10.12.x \u003c= 10.12.1, 10.11.x \u003c= 10.11.4, 10.5.x \u003c= 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).",
  "cwe": "CWE-303",
  "cpes": [
    "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Mattermost",
        "product": "Mattermost",
        "ranges": [
          "\u003e= 11.0.0, \u003c= 11.0.2",
          "\u003e= 10.12.0, \u003c= 10.12.1",
          "\u003e= 10.11.0, \u003c= 10.11.4",
          "\u003e= 10.5.0, \u003c= 10.5.12"
        ],
        "fixed_in": [
          "11.1.0",
          "11.0.3",
          "10.12.2",
          "10.11.5",
          "10.5.13"
        ]
      }
    ],
    "solutions": [
      "Update Mattermost to versions 11.1.0, 11.0.3, 10.12.2, 10.11.5, 10.5.13 or higher."
    ],
    "upgrade": [
      "Upgrade Mattermost to 11.1.0 or 11.0.3 or 10.12.2 or 10.11.5 or 10.5.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
