{"id":"CVE-2021-37860","aliases":["EUVD-2021-2078","GHSA-hv5f-73mr-7vvj","GO-2022-0604"],"status":"published","title":"Cross-site Scripting in 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.","severity":{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00631,"percentile":0.50754,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-09-22T16:40:43Z","modified":"2026-10-24T10:30:58Z","fixes":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","fixed_in":["5.39.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.39.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.39.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.39.0"}]}]}],"products":[{"vendor":"mattermost","product":"mattermost"}],"references":[{"url":"https://mattermost.com/security-updates/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37860","tags":["advisory"]},{"url":"https://docs.mattermost.com/install/self-managed-changelog.html#release-v5-39-quality-release","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hv5f-73mr-7vvj","tags":["advisory"]},{"url":"https://github.com/mattermost/mattermost-server","tags":["web"]},{"url":"https://mattermost.com/security-updates","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-37860","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.","status":"published","published":"2021-09-22T16:40:43Z","modified":"2024-08-04T01:30:09.076Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:32:58.359368Z"}],"euvd":[{"id":"EUVD-2021-2078","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.","status":"published","published":"2021-09-22T16:40:43Z","modified":"2024-08-04T01:30:09Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low"}],"updated_at":"2026-11-03T03:24:26.118239Z"}],"ghsa":[{"id":"GHSA-hv5f-73mr-7vvj","title":"Cross-site Scripting in 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.","status":"published","published":"2021-09-23T23:11:06Z","modified":"2023-04-03T19:24:43Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:49.768564Z"}],"nvd":[{"id":"CVE-2021-37860","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.","status":"published","published":"2021-09-22T17:15:11.647Z","modified":"2026-06-17T04:01:12.733Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":2.6,"vector":"AV:N/AC:H/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:58.933037Z"}],"osv":[{"id":"CVE-2021-37860","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.","status":"published","published":"2021-09-22T17:15:11.647Z","modified":"2026-10-24T10:30:58.768886656Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"GHSA-hv5f-73mr-7vvj","title":"Cross-site Scripting in 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.","status":"published","published":"2021-09-23T23:11:06Z","modified":"2024-08-21T15:41:39.956479Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:49.621585Z"},{"id":"GO-2022-0604","title":"Cross-site Scripting in Mattermost in github.com/mattermost/mattermost-server","description":"Cross-site Scripting in Mattermost in github.com/mattermost/mattermost-server","status":"published","published":"2024-08-21T15:11:38Z","modified":"2026-03-03T04:50:44.699856Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
