CVE-2021-37860
MEDIUM 6.1CVSS 3.1Cross-site Scripting in Mattermost
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.
- Published
- 22 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- responsibledisclosure@mattermost.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-hv5f-73mr-7vvjGO-2022-0604
- Sources
- NVDJSONOSV GHSA-hv5f-73mr-7vvjJSONOSV GO-2022-0604JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | responsibledisclosure@mattermost.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.6 | AV:N/AC:H/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mattermost | mattermostcpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:* |
<= 5.38 | |
| OSV | Go | github.com/mattermost/mattermost-server/v5 | < 5.39.0 | 5.39.0 |
| OSV | Go | github.com/mattermost/mattermost-server | all versions |
References
- https://mattermost.com/security-updates/ · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-37860 · ADVISORY
- https://docs.mattermost.com/install/self-managed-changelog.html#release-v5-39-quality-release · WEB
- https://github.com/mattermost/mattermost-server · WEB
- https://github.com/advisories/GHSA-hv5f-73mr-7vvj · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 22 Sep 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Sep 2021)