{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-37860","id":"CVE-2021-37860","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.","descriptionLong":"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":"2021-09-22T16:40:43.000Z","updated":"2026-10-24T10:30:58.768886656Z","reserved":"2021-08-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Mattermost","metric":{"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","rating":"low","source":"Mattermost"},"metrics":[{"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","rating":"low","source":"Mattermost"},{"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","rating":"low","source":"mattermost.com"},{"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","rating":"medium","source":"NVD"},{"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","rating":"medium","source":"OSV"},{"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","rating":"medium","source":"GitHub"},{"version":"2.0","score":2.6,"vector":"AV:N/AC:H/Au:N/C:N/I:P/A:N","rating":"low","source":"NVD"}],"rating":"low","products":["Mattermost"],"affectedProducts":[{"vendor":"Mattermost","product":"Mattermost","defaultStatus":null,"versions":[{"lessThanOrEqual":"5.38","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"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"],"advisory":"GHSA-hv5f-73mr-7vvj"},{"ecosystem":"Go","name":"github.com/mattermost/mattermost-server","purl":"pkg:golang/github.com/mattermost/mattermost-server","ranges":["all versions"],"fixed":[],"advisory":"GO-2022-0604"}],"cwes":["CWE-79"],"aliases":["GHSA-hv5f-73mr-7vvj","GO-2022-0604"],"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/mattermost/mattermost-server","tags":["web"]},{"url":"https://mattermost.com/security-updates","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hv5f-73mr-7vvj","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00631,"epssPercentile":0.51047,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-37860","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37860","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-37860","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hv5f-73mr-7vvj","ok":true,"note":"GHSA-hv5f-73mr-7vvj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-37860","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}