Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-37860
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:48 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-37860
Complete source record
{
"id": "f45988d2a131caa7b3dee4333e0d467d2fdc1ebc8ec51c96fbb65f7281783c26",
"url": "https://osv.dev/vulnerability/CVE-2021-37860",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-37860",
"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.",
"evidence": "osv:CVE-2021-37860",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-37860",
"aliases": [
"CVE-2021-37860",
"GHSA-hv5f-73mr-7vvj",
"GO-2022-0604"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mattermost/mattermost",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "eef3b3d66a8da6487e7d7f66b2dbb7d045219a7c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.38"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v5.38.0",
"cloud-2021-07-29-1",
"cloud-2021-07-15-1",
"cloud-2021-07-01-1",
"cloud-2021-06-16-1",
"cloud-2021-06-02-1",
"cloud-2021-05-21-1",
"cloud-2021-05-05-1",
"cloud-2021-04-22-1",
"cloud-2021-03-23-1",
"cloud-2021-03-12-1",
"cloud-2021-02-25-1",
"cloud-2021-02-24",
"cloud-2021-02-10",
"cloud-2021-01-26",
"cloud-2021-01-12",
"cloud-2020-12-18",
"cloud-2020-12-08",
"cloud-2020-11-24",
"v5.2.0-rc2",
"v5.2.0-rc1",
"v5.1.0-rc1",
"v5.0.0-rc1",
"v4.10.0-rc1",
"v4.9.0-rc1",
"v4.8.0-rc1",
"v4.7.0-rc1",
"v4.6.0-rc2",
"v4.6.0-rc1",
"v4.5.0-rc1",
"v4.4.0-rc1",
"v4.3.0-rc1",
"v4.2.0-rc1",
"v0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37860.json"
}
}
],
"modified": "2026-10-24T10:30:58.768886656Z",
"provider": "osv",
"references": [
"https://mattermost.com/security-updates/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-37860",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 439162,
"published_at": "2021-09-22T17:15:11.647+00:00"
}