Live threats

All CVEs / Mattermost

CVE-2021-37860Mattermost

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mattermost.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mattermostmattermost≤ 5.38

Official sources

References

Links published by the sources. Open them with care.