# CVE-2021-37860: Cross-site Scripting in Mattermost

- Severity: Low 3.7 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2021-09-22T16:40:43.000Z
- Modified: 2026-06-17T04:01:12.733Z
- Also known as: GHSA-hv5f-73mr-7vvj, GO-2022-0604
- Weaknesses: CWE-79
- Assigned by: Mattermost

## Description

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.

(As written by CVE List.)

## Affected

- Mattermost Mattermost: from unspecified up to 5.38; up to 5.38
- github.com/mattermost/mattermost-server/v5 (Go): before 5.39.0
- github.com/mattermost/mattermost-server (Go): all versions

## Every score

- Mattermost: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:P/A:N`

## References

- <https://mattermost.com/security-updates/> (vendor-advisory)
- <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://mattermost.com/security-updates> (web)
- <https://github.com/advisories/GHSA-hv5f-73mr-7vvj> (advisory)

## Sources

- CVE List: [CVE-2021-37860](https://www.cve.org/CVERecord?id=CVE-2021-37860), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hv5f-73mr-7vvj](https://github.com/advisories/GHSA-hv5f-73mr-7vvj), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0604](https://pkg.go.dev/vuln/GO-2022-0604), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-37860](https://nvd.nist.gov/vuln/detail/CVE-2021-37860), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-37860 · Whole record: https://cve.day/CVE-2021-37860.json · Rebuilt by cve.day 2026-11-25T22:58:04.100Z
