{"id":"CVE-2021-37860","aliases":["CVE-2021-37860","GHSA-hv5f-73mr-7vvj","GO-2022-0604"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in Mattermost","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Cross-site Scripting in Mattermost in github.com/mattermost/mattermost-server","format":"markdown","source":"go"},{"lang":"es","text":"Mattermost versiones 5.38 y anteriores, no sanean suficientemente el contenido del portapapeles, lo que permite a un atacante con ayuda del usuario inyectar un script web arbitrario en las implementaciones del producto que deshabilitan explícitamente el CSP predeterminado","source":"nvd"}],"published":"2021-09-22T16:40:43.000Z","modified":"2026-06-17T04:01:12.733Z","severity":{"scorer":"Mattermost","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"Mattermost","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:N/I:P/A:N","score":2.6,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"5.38","status":"affected"}],"vendor":"Mattermost","product":"Mattermost","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.39.0"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","purl":"pkg:golang/github.com/mattermost/mattermost-server","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.39.0"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","source":"go"},{"ranges":[{"status":"affected","lastAffected":"5.38"}],"vendor":"mattermost","product":"mattermost","cpe":"cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://mattermost.com/security-updates/","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37860","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://docs.mattermost.com/install/self-managed-changelog.html#release-v5-39-quality-release","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/mattermost/mattermost-server","tags":["web"],"sources":["ghsa","go"]},{"url":"https://mattermost.com/security-updates","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-hv5f-73mr-7vvj","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"Mattermost","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-37860","url":"https://www.cve.org/CVERecord?id=CVE-2021-37860","licence":"CVE Terms of Use","modified":"2024-08-04T01:30:09.076Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hv5f-73mr-7vvj","url":"https://github.com/advisories/GHSA-hv5f-73mr-7vvj","licence":"CC-BY-4.0","modified":"2024-08-21T15:41:39.956Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0604","url":"https://pkg.go.dev/vuln/GO-2022-0604","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:44.699Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-37860","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37860","licence":"Public domain","modified":"2026-06-17T04:01:12.733Z"}],"updatedAt":"2026-11-25T22:58:04.100Z","epss":{"score":0.00631,"percentile":0.51578,"date":"2026-12-01T12:00:22.000Z"}}