Mattermost ServerApplication · Mattermost

CVE-2021-37862

MEDIUM · 5.4 CVSS v3.1 Published 2021-12-17
Fix available
A fix is available. Upgrade to after 6.0 or later.
See remediation →
61/100
Remediation priority · Elevated
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Mattermost 6.0 and earlier fails to sufficiently validate the email address during registration, which allows attackers to trick users into signing up using attacker-controlled email addresses via crafted invitation token.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

Mattermost 6.0 and earlier has insufficient email address validation during the user registration process when processing invitation tokens. Attackers can craft malicious invitation tokens to bypass validation and register accounts with attacker-controlled email addresses, potentially enabling account takeover or phishing attacks against legitimate users.

MitigationUpgrade to Mattermost 6.1 or later which contains proper email validation fixes. Review recent user registrations for suspicious activity and invalidate any potentially crafted invitation tokens.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Mattermost ServerApplication
Affected:<= 6.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Mattermost Server version
    Access the Mattermost System Console or check the server configuration. Navigate to About > Mattermost or run `grep -i version /opt/mattermost/version.go` (path may vary based on installation)
    Affected if The installed version is 6.0 or earlier (any version up to and including 6.0)
  2. Confirm invitation token registration is enabled
    Navigate to System Console > Users and Teams > Invitations or check configuration file (config.json) for 'EnableEmailInvitations' or 'EnableSignUpWithEmail' settings
    Affected if Email-based registration or invitation tokens are enabled (the vulnerability applies to environments allowing user registration via invitation tokens)
  3. Review recent user registrations
    Query the Users table in the Mattermost database for accounts created within the vulnerability window, or review System Console logs for user creation events around the time of potential exploitation
    Affected if New user accounts exist with email addresses that do not match expected organizational domains or appear suspicious

You are affected if Mattermost Server version is 6.0 or earlier AND email-based invitation/registration is enabled, requiring further investigation of recent user registrations for suspicious activity.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 6.0
Interim mitigation

Upgrade to Mattermost 6.1 or later which contains proper email validation fixes. Review recent user registrations for suspicious activity and invalidate any potentially crafted invitation tokens.

Recommended fix Moderate confidence

Mattermost Server 6.3.x or later (any version > 6.0)

  1. 1. Back up your current Mattermost Server data and configuration.
  2. 2. Download and install the latest stable Mattermost Server version (recommended: 6.3.x or later).
  3. 3. Verify that the email validation during invitation token registration is working correctly by testing with crafted invitation tokens.
  4. 4. Confirm that the server starts without errors and all services are正常运行.
Caveat Review Mattermost release notes for version 6.x to check for any breaking changes relevant to your configuration

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Mattermost Server Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing3.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,490
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-37862 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2021-37862 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data