CVE-2026-6961: Path traversal via unsanitized FileInfo.Name in Mattermost federation sync
Mattermost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost-server Go |
|
|
Mattermost
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost-server Go |
|
|
11.5.510.11.1710.11.17+incompatible11.5.5+incompatible11.6.1+incompatible| github.com/mattermost/mattermost/server/v8 Go |
|
|
| github.com/mattermost/mattermost-server/v5 Go |
| No fix yet |
| github.com/mattermost/mattermost-server/v6 Go |
| No fix yet |
Mattermost versions 11.6.x <= 11.6.1, 11.5.x <= 11.5.4, 10.11.x <= 10.11.15, 10.11.x <= 10.11.16 Mattermost fails to sanitize FileInfo.Name received from federated peers during shared channel file sync, which allows an attacker who controls a federated server to write files to arbitrary locations within the target server's filestore via path traversal sequences in the filename field.. Mattermost Advisory ID: MMSA-2026-00661
From the CVE record · Mattermost
Mattermost does not sanitize filenames received from federated peers during shared channel file sync. An attacker who controls a federated server can use path traversal in a filename to write files to arbitrary locations within the target server's filestore.
Engineers running Mattermost with affected github.com/mattermost/mattermost-server versions in the 11.6, 11.5, or 10.11 lines, the affected github.com/mattermost/mattermost/server/v8 prerelease range, or any github.com/mattermost/mattermost-server/v5 or /v6 version should check their deployments.