---
title: "mattermost/mattermost: functions and files changed by CVE fixes"
url: https://radicalnotion.ai/fixes/mattermost/mattermost
type: fixes-repository
description: "141 CVE fixes in mattermost/mattermost changed 1,248 functions across 302 files."
updated: 2026-06-26
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# mattermost/mattermost: patched functions

- **CVEs with a located fix:** 141
- **Functions patched:** 1,248
- **Files patched:** 302
- **Diff hunks:** 2,777
- **Languages:** go, typescript, javascript, sql
- **Rank by CVE fixes:** 24 of 12,290
- **First fix:** 2020-06-19
- **Latest fix:** 2026-06-26
- **Repository:** [https://github.com/mattermost/mattermost](https://github.com/mattermost/mattermost)

## Typical fix size

- Median lines changed per fix: 26
- Fixes touching a single function: 31%
- Fixes under 20 changed lines: 45%

## Most-patched functions

| Function | File | CVEs | Patches | Last fixed |
| --- | --- | --- | --- | --- |
| [completeSaml](https://radicalnotion.ai/fixes/mattermost/mattermost/completeSaml) | server/channels/web/saml.go | 7 | 9 | 2025-11-27 |
| [GetAuthorizationCode](https://radicalnotion.ai/fixes/mattermost/mattermost/GetAuthorizationCode) | api/oauth.go | 4 | 6 | 2020-06-19 |
| [completeOAuth](https://radicalnotion.ai/fixes/mattermost/mattermost/completeOAuth) | server/channels/web/oauth.go | 4 | 5 | 2025-10-16 |
| [AuthorizeOAuthUser](https://radicalnotion.ai/fixes/mattermost/mattermost/AuthorizeOAuthUser) | server/channels/app/oauth.go | 3 | 5 | 2025-12-17 |
| [ConsumeOnce](https://radicalnotion.ai/fixes/mattermost/mattermost/ConsumeOnce) | server/channels/store/retrylayer/retrylayer.go | 3 | 5 | 2025-11-27 |
| [ConsumeOnce](https://radicalnotion.ai/fixes/mattermost/mattermost/ConsumeOnce) | server/channels/store/timerlayer/timerlayer.go | 3 | 5 | 2025-11-27 |
| [loginWithSaml](https://radicalnotion.ai/fixes/mattermost/mattermost/loginWithSaml) | server/channels/web/saml.go | 3 | 5 | 2025-11-14 |
| [ConvertUserToBot](https://radicalnotion.ai/fixes/mattermost/mattermost/ConvertUserToBot) | server/channels/app/bot.go | 3 | 5 | 2025-05-30 |
| [ServeHTTP](https://radicalnotion.ai/fixes/mattermost/mattermost/ServeHTTP) | api/context.go | 3 | 5 | 2020-06-19 |
| [ConsumeOnce](https://radicalnotion.ai/fixes/mattermost/mattermost/ConsumeOnce) | server/channels/store/sqlstore/tokens\_store.go | 3 | 4 | 2025-11-27 |
| [ConsumeTokenOnce](https://radicalnotion.ai/fixes/mattermost/mattermost/ConsumeTokenOnce) | server/channels/app/user.go | 3 | 4 | 2025-11-27 |
| [InitUser](https://radicalnotion.ai/fixes/mattermost/mattermost/InitUser) | server/channels/api4/user.go | 3 | 4 | 2025-11-14 |
| [DemoteUserToGuest](https://radicalnotion.ai/fixes/mattermost/mattermost/DemoteUserToGuest) | server/channels/app/user.go | 2 | 4 | 2026-06-22 |
| [getGroupMessageMembersCommonTeams](https://radicalnotion.ai/fixes/mattermost/mattermost/getGroupMessageMembersCommonTeams) | server/channels/api4/channel.go | 2 | 4 | 2025-12-17 |
| [UpdateTeamMemberSchemeRoles](https://radicalnotion.ai/fixes/mattermost/mattermost/UpdateTeamMemberSchemeRoles) | server/channels/app/team.go | 2 | 4 | 2024-04-26 |

## Most-patched files

| File | CVEs | Functions |
| --- | --- | --- |
| server/channels/api4/channel.go | 10 | 11 |
| server/channels/api4/user.go | 10 | 9 |
| server/channels/app/user.go | 9 | 8 |
| api/user.go | 8 | 18 |
| api/oauth.go | 8 | 11 |
| server/channels/app/post.go | 8 | 8 |
| server/channels/store/retrylayer/retrylayer.go | 8 | 7 |
| server/channels/store/timerlayer/timerlayer.go | 8 | 7 |
| server/channels/store/store.go | 8 | 5 |
| server/channels/api4/post.go | 7 | 7 |

## Latest CVE fixes

| CVE | Title | Severity | CVSS | CISA KEV | Functions changed | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-13426 | Client4 fails to validate path parameters | medium | 5.4 | No | usersRoute, doAPIGet, clientRoute | 2026-06-26 |
| CVE-2026-8823 | User Manager can demote bot accounts to guest without bot-management permission | low | 3.8 | No | DemoteUserToGuest | 2026-06-22 |
| CVE-2026-6961 | CVE-2026-6961: Path traversal via unsanitized FileInfo.Name in Mattermost federation sync | high | 7.6 | No | IsValidFilename, UploadData, genFileInfoFromReader | 2026-06-12 |
| CVE-2026-7387 | Mattermost group syncable endpoints allow privilege escalation via scheme\_admin | high | 8.8 | No | linkGroupSyncable, verifySchemeAdminAssignmentPermission, GroupDetails | 2026-06-12 |
| CVE-2026-6046 | Plugin bot username conflict allows user account to be used as bot identity in Mattermost Server | medium | 5.3 | No | EnsureBot | 2026-06-12 |
| CVE-2026-6689 | \*Missing\* {{invite\_user}} \*permission check on team creation allows unprivileged users to set open-invite and allowed-domains team settings\* | medium | 4.3 | No | creatorCanInviteUsersOnTeam, createTeam | 2026-06-12 |
| CVE-2026-7184 | Mattermost Remote Cluster PATCH API Leaks Authentication Tokens | medium | 6.5 | No | patchRemoteCluster | 2026-06-12 |
| CVE-2026-6739 | Mattermost: Delegated admins could patch protected default system roles | high | 7.2 | No | patchRole | 2026-06-12 |
| CVE-2026-3433 | Mattermost fails to scope role\_updated websocket events to authorized team and channel members | medium | 4.3 | No | sendUpdatedRoleEvent, testRoleStoreLowerScopedChannelSchemeRoles, testSchemeStoreSave | 2026-06-12 |
| CVE-2026-4915 | Server panic via outgoing webhook responses | medium | 6.5 | No | Done, ProcessMessageAttachments | 2026-05-25 |
| CVE-2026-5740 | Unauthenticated WebSocket binary frame causes denial of service in Mattermost Server | high | 7.5 | No | readPump | 2026-05-22 |
| CVE-2026-6333 | SSRF via Host Header Spoofing in Custom Slash Commands | medium | 5.0 | No | tryExecuteCustomCommand, getDynamicListArgument | 2026-05-18 |

## Frequently asked questions

### How many CVEs have a located fix in mattermost/mattermost?

141 published CVEs have a fix traced to functions in mattermost/mattermost, touching 1,248 functions across 302 files.

### Which function in mattermost/mattermost has been patched most often?

completeSaml in server/channels/web/saml.go has been changed by 9 distinct patches, fixing 7 CVEs, from 2024 to 2025.

### How large is a typical CVE fix in mattermost/mattermost?

The median fix changes 26 lines. 45% of fixes change 20 lines or fewer, and 31% change a single function.

### How is a fix located to a function?

The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.

## Similar repositories

- [xwiki/xwiki-platform](https://radicalnotion.ai/fixes/xwiki/xwiki-platform) (140 CVEs)
- [FreeRDP/FreeRDP](https://radicalnotion.ai/fixes/freerdp/freerdp) (145 CVEs)
- [android.googlesource.com/platform-packages-apps-Settings](https://radicalnotion.ai/fixes/android.googlesource.com/platform-packages-apps-settings) (133 CVEs)
- [python/cpython](https://radicalnotion.ai/fixes/python/cpython) (131 CVEs)
- [django/django](https://radicalnotion.ai/fixes/django/django) (154 CVEs)
- [openemr/openemr](https://radicalnotion.ai/fixes/openemr/openemr) (156 CVEs)
- [discourse/discourse](https://radicalnotion.ai/fixes/discourse/discourse) (159 CVEs)
- [liferay/liferay-portal](https://radicalnotion.ai/fixes/liferay/liferay-portal) (159 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/fixes/mattermost/mattermost). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
