{"cve":"CVE-2021-37860","nvd":{"published":"2021-09-22T17:15:11.647","modified":"2026-06-17T04:01:12.733","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://mattermost.com/security-updates/","https://mattermost.com/security-updates/"],"products":["mattermost:mattermost"],"source":"nvd","synced_at":"2026-10-19T21:23:41.316049955+00:00"},"epss":{"cve":"CVE-2021-37860","score":0.00631,"percentile":0.50257,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hv5f-73mr-7vvj","url":"https://osv.dev/vulnerability/GHSA-hv5f-73mr-7vvj","summary":"Cross-site Scripting in Mattermost","modified":"2024-08-21T15:41:39.956479Z","packages":[{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","ranges":["<5.39.0"],"fixed":["5.39.0"]}]},{"id":"GO-2022-0604","url":"https://osv.dev/vulnerability/GO-2022-0604","summary":"Cross-site Scripting in Mattermost in github.com/mattermost/mattermost-server","modified":"2026-03-03T04:50:44.699856Z","packages":[{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server","purl":"pkg:golang/github.com/mattermost/mattermost-server","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","ranges":["<5.39.0"],"fixed":["5.39.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}