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).

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
  • MattermostMattermost
  • cpe:2.3:a:mattermost:mattermost
NoYesJun 20, 2025
CVE-2024-8071HIGH7.2
  • MattermostMattermost
  • github.com/mattermost/mattermost
NoYesAug 22, 2024
CVE-2024-42411MEDIUM5.3
  • MattermostMattermost
  • mattermost
NoYesAug 22, 2024
CVE-2024-43813MEDIUM4.3
  • MattermostMattermost
  • mattermost
NoYesAug 22, 2024
CVE-2024-10214LOW3.5
  • MattermostMattermost
  • github.com/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