CVE-2021-37860: Cross-site Scripting in Mattermost
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57139%
CWE
Published
9/23/2021
Updated
4/3/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/mattermost/mattermost-server/v5 | go | < 5.39.0 | 5.39.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The provided information describes an XSS vulnerability due to insufficient sanitization of clipboard contents when CSP is disabled. However, the GitHub patch and commit diff details are explicitly marked as unavailable, and neither the CVE description nor the advisory provides specific function names or code locations. While the vulnerability likely exists in clipboard input handling or HTML rendering logic, the lack of technical implementation details makes it impossible to identify specific vulnerable functions with high confidence. Mattermost's server-side Go
code would require analysis of how clipboard data is processed and sanitized in versions <5.39.0 to pinpoint exact functions, which isn't provided in the available data.