CVE-2021-37860Mattermost
Medium 6.1 No auth needed
Follow: this CVE · Mattermost · Mattermost We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 45
- Auth required
- No
- Published
- Sep 22, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
Mattermost 5.38 and earlier fails to sufficiently sanitize clipboard contents, which allows a user-assisted attacker to inject arbitrary web script in product deployments that explicitly disable the default CSP.
What to do
- Apply the vendor's security update for Mattermost.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/mattermost/mattermost-server |
all |
no fixed version | — |
| Go | github.com/mattermost/mattermost-server/v5 |
< 5.39.0 |
5.39.0 |
go get github.com/mattermost/mattermost-server/v5@v5.39.0 |
| Go | github.com/mattermost/mattermost-server/v5 |
< 5.39.0 |
5.39.0 |
go get github.com/mattermost/mattermost-server/v5@v5.39.0 |
Per OSV / GitHub Advisories (GO-2022-0604, GHSA-hv5f-73mr-7vvj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mattermost | mattermost | ≤ 5.38 |
Official sources
References
Links published by the sources. Open them with care.
- mattermost.com Vendor Advisory