Terminal Escape Injection in mmctl Report Posts Command
Mattermost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost/server/v8 Go |
|
|
Mattermost
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost/server/v8 Go |
|
|
11.2.310.11.118.0.0-20260217110922-b7d4a1f1f59b| github.com/mattermost/mattermost-server Go |
|
|
| github.com/mattermost/mattermost-server/v5 Go |
| No fix yet |
| github.com/mattermost/mattermost-server/v6 Go |
| No fix yet |
Mattermost versions 11.2.x <= 11.2.2, 10.11.x <= 10.11.10, 11.4.x <= 11.4.0, 11.3.x <= 11.3.1 fail to sanitize user-controlled post content in the mmctl commands terminal output which allows attackers to manipulate administrator terminals via crafted messages containing ANSI and OSC escape sequences that enable screen manipulation, fake prompts, and clipboard hijacking.. Mattermost Advisory ID: MMSA-2026-00599
From the CVE record · Mattermost
Mattermost fails to sanitize user-controlled post content displayed in mmctl terminal output. An attacker can place crafted messages containing ANSI and OSC escape sequences that manipulate an administrator’s terminal, including fake prompts and clipboard hijacking, when the administrator views that output. The input does not specify whether the attacker needs authentication.
Teams running Mattermost 10.11.x through 10.11.10, 11.2.x through 11.2.2, 11.3.x through 11.3.1, or 11.4.x through 11.4.0, or using the listed affected Go packages, should check their versions.