Miggo Logo

CVE-2021-37860: Cross-site Scripting in Mattermost

6.1

CVSS Score
3.1

Basic Information

EPSS Score
0.57139%
Published
9/23/2021
Updated
4/3/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/mattermost/mattermost-server/v5go< 5.39.05.39.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

M*tt*rmost *.** *n* **rli*r **ils to su**i*i*ntly s*nitiz* *lip*o*r* *ont*nts, w*i** *llows * us*r-*ssist** *tt**k*r to inj**t *r*itr*ry w** s*ript in pro*u*t **ploym*nts t**t *xpli*itly *is**l* t** ****ult *SP.

Reasoning

T** provi*** in*orm*tion **s*ri**s *n XSS vuln*r**ility *u* to insu**i*i*nt s*nitiz*tion o* *lip*o*r* *ont*nts w**n *SP is *is**l**. *ow*v*r, t** *it*u* p*t** *n* *ommit *i** **t*ils *r* *xpli*itly m*rk** *s un*v*il**l*, *n* n*it**r t** *V* **s*ripti