CVE-2021-37859
Mattermost vulnerability analysis and mitigation

Overview

A reflected cross-site scripting (XSS) vulnerability was discovered in OAuth-enabled instances of Mattermost. The vulnerability, identified as CVE-2021-37859, was related to a bypass of existing XSS protections. The issue affects Mattermost versions from 5.32.0 up to 5.34.5, 5.35.0 up to 5.35.4, and 5.36.0 up to 5.36.1 (NVD).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). According to the CVSS 3.1 scoring, the vulnerability received a base score of 6.1 (MEDIUM) from NIST with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, while Mattermost assessed it with a higher severity score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L. The CVSS 2.0 base score was rated at 4.3 (MEDIUM) with vector (AV:N/AC:M/Au:N/C:N/I:P/A:N) (NVD).

Impact

The vulnerability could potentially allow attackers to execute cross-site scripting attacks against users of OAuth-enabled Mattermost instances, potentially leading to unauthorized access to user data and potential account compromise (NVD).

Exploitability

The vulnerability requires user interaction to be exploited, as indicated by the UI:R parameter in the CVSS vector. It can be accessed through network vectors (AV:N) and requires no privileges (PR:N) to exploit (NVD).

Mitigation and workarounds

Users should upgrade to the fixed versions of Mattermost: version 5.34.5 or later for the 5.34.x series, version 5.35.4 or later for the 5.35.x series, or version 5.36.1 or later for the 5.36.x series (NVD).

Additional resources


SourceThis report was generated using AI

Related Mattermost vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-4981CRITICAL9.9
  • Mattermost logoMattermost
  • cpe:2.3:a:mattermost:mattermost
NoYesJun 20, 2025
CVE-2024-8071HIGH7.2
  • Mattermost logoMattermost
  • github.com/mattermost/mattermost
NoYesAug 22, 2024
CVE-2026-24661MEDIUM6.5
  • Mattermost logoMattermost
  • github.com/mattermost/mattermost-plugin-msteams
NoYesApr 09, 2026
CVE-2026-21388MEDIUM6.5
  • Mattermost logoMattermost
  • cpe:2.3:a:mattermost:mattermost
NoYesApr 09, 2026
CVE-2024-10214LOW3.5
  • Mattermost logoMattermost
  • cpe:2.3:a:mattermost:mattermost
NoYesOct 28, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management