Privilege Context Switching Error Affecting github.com/mattermost/mattermost/server/channels/api4 package, versions >=10.5.0-rc1 <10.5.13>=10.11.0-rc1 <10.11.5>=10.12.0-rc1 <10.12.2>=11.0.0-alpha.1 <11.0.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (7th 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 IDSNYK-GOLANG-GITHUBCOMMATTERMOSTMATTERMOSTSERVERCHANNELSAPI4-14157900
  • published2 Dec 2025
  • disclosed1 Dec 2025
  • creditUnknown

Introduced: 1 Dec 2025

NewCVE-2025-12756  (opens in a new tab)
CWE-270  (opens in a new tab)

How to fix?

Upgrade github.com/mattermost/mattermost/server/channels/api4 to version 10.5.13, 10.11.5, 10.12.2, 11.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Context Switching Error in the current user session. An attacker can remove comments created by other users by sending crafted requests with insufficient permission checks.

CVSS Base Scores

version 4.0
version 3.1