CVE-2025-12421 (GCVE-0-2025-12421)

Vulnerability from cvelistv5 – Published: 2025-11-27 17:47 – Updated: 2026-02-26 16:07
VLAI
Title
Account Takeover via Code Exchange Endpoint
Summary
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).
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-12-02 04:55 UTC
CWE
  • CWE-303 - Incorrect Implementation of Authentication Algorithm
References
Impacted products
Vendor Product Version
Mattermost Mattermost Affected: 11.0.0 , ≤ 11.0.2 (semver)
Affected: 10.12.0 , ≤ 10.12.1 (semver)
Affected: 10.11.0 , ≤ 10.11.4 (semver)
Affected: 10.5.0 , ≤ 10.5.12 (semver)
Unaffected: 11.1.0
Unaffected: 11.0.3
Unaffected: 10.12.2
Unaffected: 10.11.5
Unaffected: 10.5.13
Create a notification for this product.
Credits
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-12421",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-12-02T04:55:57.705451Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-02-26T16:07:25.754Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Mattermost",
          "vendor": "Mattermost",
          "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"
            },
            {
              "status": "unaffected",
              "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"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "daw10"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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)."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.9,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-303",
              "description": "CWE-303: Incorrect Implementation of Authentication Algorithm",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-11-27T17:47:04.944Z",
        "orgId": "9302f53e-dde5-4bf3-b2f2-a83f91ac0eee",
        "shortName": "Mattermost"
      },
      "references": [
        {
          "url": "https://mattermost.com/security-updates"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Update Mattermost to versions 11.1.0, 11.0.3, 10.12.2, 10.11.5, 10.5.13 or higher."
        }
      ],
      "source": {
        "advisory": "MMSA-2025-00544",
        "defect": [
          "https://mattermost.atlassian.net/browse/MM-66299"
        ],
        "discovery": "EXTERNAL"
      },
      "title": "Account Takeover via Code Exchange Endpoint"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "9302f53e-dde5-4bf3-b2f2-a83f91ac0eee",
    "assignerShortName": "Mattermost",
    "cveId": "CVE-2025-12421",
    "datePublished": "2025-11-27T17:47:04.944Z",
    "dateReserved": "2025-10-28T16:54:12.491Z",
    "dateUpdated": "2026-02-26T16:07:25.754Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-12421",
      "date": "2026-11-16",
      "epss": "0.00446",
      "percentile": "0.3928"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Mattermost",
                "vendor": "Mattermost",
                "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"
                  },
                  {
                    "status": "unaffected",
                    "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"
                  }
                ]
              }
            ],
            "source": "responsibledisclosure@mattermost.com"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "91D99F7F-B4EE-447C-9B77-82DD64B1D83A",
                    "versionEndExcluding": "10.5.13",
                    "versionStartIncluding": "10.5.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "A8368192-621C-4043-827E-DB4F6946AD92",
                    "versionEndExcluding": "10.11.5",
                    "versionStartIncluding": "10.11.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "ED48D731-6490-4DD5-94D4-EE4555BB93ED",
                    "versionEndExcluding": "10.12.2",
                    "versionStartIncluding": "10.12.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "3A288B87-76F2-415B-8462-3D185EB7A9B3",
                    "versionEndExcluding": "11.0.3",
                    "versionStartIncluding": "11.0.0",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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)."
          },
          {
            "lang": "es",
            "value": "Las versiones de Mattermost 11.0.x menor o igual que 11.0.2, 10.12.x menor o igual que 10.12.1, 10.11.x menor o igual que 10.11.4, 10.5.x menor o igual que 10.5.12 no verifican que el token utilizado durante el intercambio de c\u00f3digo se origine del mismo flujo de autenticaci\u00f3n, lo que permite a un usuario autenticado realizar una toma de control de cuenta a trav\u00e9s de una direcci\u00f3n de correo electr\u00f3nico especialmente dise\u00f1ada, utilizada al cambiar m\u00e9todos de autenticaci\u00f3n y enviar una solicitud al endpoint /users/login/sso/code-exchange. La vulnerabilidad requiere que ExperimentalEnableAuthenticationTransfer est\u00e9 habilitado (predeterminado: habilitado) y que RequireEmailVerification est\u00e9 deshabilitado (predeterminado: deshabilitado)."
          }
        ],
        "id": "CVE-2025-12421",
        "lastModified": "2026-10-19T13:10:00.110",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.9,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.1,
              "impactScore": 6.0,
              "source": "responsibledisclosure@mattermost.com",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2025-12421",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-12-02T04:55:57.705451Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2025-11-27T18:15:46.223",
        "references": [
          {
            "source": "responsibledisclosure@mattermost.com",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "https://mattermost.com/security-updates"
          }
        ],
        "sourceIdentifier": "responsibledisclosure@mattermost.com",
        "vulnStatus": "Analyzed",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-303"
              }
            ],
            "source": "responsibledisclosure@mattermost.com",
            "type": "Secondary"
          }
        ]
      }
    },
    "suse_vex": {
      "aggregate_severity": "critical",
      "current_release_date": "2026-10-18T00:09:28Z",
      "cve": "CVE-2025-12421",
      "id": "CVE-2025-12421",
      "initial_release_date": "2026-01-06T00:28:34Z",
      "product_status:recommended": "2",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-12421",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2025-12421.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2025-12421",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-12-02T04:55:57.705451Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-11-28T14:52:13.431Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Mattermost",
              "vendor": "Mattermost",
              "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"
                },
                {
                  "status": "unaffected",
                  "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"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "daw10"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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)."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.9,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-303",
                  "description": "CWE-303: Incorrect Implementation of Authentication Algorithm",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2025-11-27T17:47:04.944Z",
            "orgId": "9302f53e-dde5-4bf3-b2f2-a83f91ac0eee",
            "shortName": "Mattermost"
          },
          "references": [
            {
              "url": "https://mattermost.com/security-updates"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Update Mattermost to versions 11.1.0, 11.0.3, 10.12.2, 10.11.5, 10.5.13 or higher."
            }
          ],
          "source": {
            "advisory": "MMSA-2025-00544",
            "defect": [
              "https://mattermost.atlassian.net/browse/MM-66299"
            ],
            "discovery": "EXTERNAL"
          },
          "title": "Account Takeover via Code Exchange Endpoint"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "9302f53e-dde5-4bf3-b2f2-a83f91ac0eee",
        "assignerShortName": "Mattermost",
        "cveId": "CVE-2025-12421",
        "datePublished": "2025-11-27T17:47:04.944Z",
        "dateReserved": "2025-10-28T16:54:12.491Z",
        "dateUpdated": "2026-02-26T16:07:25.754Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…