Time-of-check Time-of-use (TOCTOU) Race Condition Affecting github.com/mattermost/mattermost/server/channels/api4 package, versions >=10.11.0 <10.11.10>=11.0.0-alpha.1 <11.3.0-rc2


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMMATTERMOSTMATTERMOSTSERVERCHANNELSAPI4-15282851
  • published15 Feb 2026
  • disclosed13 Feb 2026
  • creditJuho Forsén

Introduced: 13 Feb 2026

CVE-2026-20796  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade github.com/mattermost/mattermost/server/channels/api4 to version 10.11.10, 11.3.0-rc2 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via a race condition in the /common_teams API endpoint. An attacker can gain unauthorized access to team names by exploiting the timing of channel membership validation during data retrieval. This is only exploitable if a user is deactivated while a request is being processed.

CVSS Base Scores

version 4.0
version 3.1