Skip to main content

Mattermost CVE-2026-13426

| EUVDEUVD-2026-39661 MEDIUM
Path Traversal (CWE-22)
2026-06-26 responsibledisclosure@mattermost.com GHSA-72v2-v53v-4qmm
5.4
CVSS 3.1 · Vendor: mattermost
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privilege Mattermost account
  2. Delivery
    Craft API request with path traversal in ID parameter
  3. Exploit
    Submit request to affected API route
  4. Execution
    Server constructs malformed route path without sanitization
  5. Persist
    Request resolves to unintended API endpoint
  6. Impact
    Read or modify data at unintended endpoint

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid authenticated session on the Mattermost instance (CVSS PR:L), meaning the attacker must have at least a standard user account. No elevated privileges or administrative role are required beyond basic authentication. The vulnerable code path is triggered when an attacker supplies a crafted ID value containing path traversal components to any API endpoint that uses the affected server/public module for route construction. Default Mattermost installations with open user registration are at higher risk because attackers can self-register an account. Exploitation is limited to network-accessible Mattermost deployments (AV:N); air-gapped or internally-only-accessible instances reduce exposure but do not eliminate it for insider threat scenarios. No special non-default configuration is required - any deployment using the vulnerable module version is susceptible once the attacker authenticates.

Impact

The CVSS 3.1 base score of 5.4 (Medium) reflects a network-accessible, low-complexity flaw requiring low-privilege authentication (PR:L) with no user interaction. The scope is unchanged (S:U), limiting blast radius to the vulnerable system. Both confidentiality and integrity impacts are rated Low, with no availability impact, which is consistent with an API routing bypass that may expose or modify data at unintended endpoints rather than enabling arbitrary code execution. No EPSS score was provided in the source data, which is a gap; without it, exploitation probability cannot be quantified statistically. No KEV listing and no public POC are noted, suggesting this has not yet been weaponized at scale. The primary risk is access to API endpoints that should be gated by role or resource ownership - a meaningful but bounded threat in multi-tenant Mattermost deployments. The requirement for a valid authenticated session (PR:L) is the primary limiting factor that separates this from a critical unauthenticated flaw.

Exploit ScenarioDerived

An authenticated Mattermost user with low-privilege access crafts an API request in which a resource ID field contains path traversal sequences (e.g., '../../admin/endpoint'), causing the server's routing logic to resolve the request against a different, higher-privileged API endpoint than intended. The attacker can then read or manipulate resources they should not have access to, such as other users' data or administrative API responses. No public POC has been identified, but the technique is well-understood and straightforward to attempt given basic knowledge of the Mattermost API structure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 26, 2026

Path traversal in Mattermost's Go server module allows authenticated remote attackers to redirect API calls to unintended endpoints by embedding path traversal components (e.g., '../') within crafted ID parameters. The affected library is github.com/mattermost/mattermost/server/public versions prior to v0.1.22, which fails to sanitize path parameters before constructing API route paths. Exploitation yields limited confidentiality and integrity impact (CVSS 5.4 Medium); no public exploit code and no CISA KEV listing have been identified at time of analysis.

RemediationAI

Upgrade the github.com/mattermost/mattermost/server/public Go module to v0.1.22 or later, which introduces proper validation of path parameters prior to API route construction. Organizations running Mattermost server should update to the corresponding Mattermost server release that pulls in this fixed module version, as detailed in the vendor security updates page at https://mattermost.com/security-updates. If an immediate upgrade is not feasible, a compensating control is to enforce strict network-layer access controls so that only trusted, authenticated users with least-privilege roles can reach API endpoints - this does not eliminate the flaw but reduces the pool of potential attackers. Mattermost administrators should also audit API gateway or reverse proxy configurations to restrict unexpected path patterns (e.g., requests containing '../' sequences) at the ingress layer, though this control may be bypassable via encoding variants. Note that no exact patched Mattermost server version number is independently confirmed in the available reference data beyond the Go module version v0.1.22.

Affected VersionsENISA

github.com/mattermost/mattermost/server/public v0.0.0 <v0.1.22

Affected Packages

go github.com/mattermost/mattermost/server/public fix: 0.1.22

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the Go module github.com/mattermost/mattermost/server/public, which provides shared server-side primitives for the Mattermost collaboration platform. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) is the root cause: when this library constructs API route paths by interpolating caller-supplied ID values, it does not validate or sanitize those values for path traversal sequences such as '../' or URL-encoded equivalents. As a result, an attacker-controlled ID can escape the intended API namespace and cause the server to route the request to a different, unintended API endpoint. This is a server-side routing confusion issue rather than a traditional filesystem traversal - the traversal occurs within the HTTP routing layer, not directly against the filesystem.

Know when Mattermost gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mattermost) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Network-reachable by any authenticated low-privilege user; path traversal yields bounded read/write at unintended endpoints, no scope change or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mattermost).

CVSS VectorVendor: mattermost

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The Mattermost Go module github.com/mattermost/mattermost/server/public versions < v0.1.22 fail to validate path parameters when constructing API route paths which allows an attacker to redirect API calls to unintended endpoints via crafted IDs containing path traversal components. Mattermost Advisory ID: MMSA-2025-00532

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular open-source enterprise team collaboration platform
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2025-25279 CRITICAL
9.9 Feb 24

Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate boa

CVE-2026-48801 HIGH POC
8.7 Jun 26

Denial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s

CVE-2022-4044 MEDIUM POC
6.5 Nov 23

A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto

CVE-2022-3257 MEDIUM POC
6.5 Sep 23

Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w

CVE-2025-4981 CRITICAL
9.9 Jun 20

A remote code execution vulnerability (CVSS 9.9) that allows authenticated users. Critical severity with potential for s

CVE-2025-20051 CRITICAL
9.9 Feb 24

Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate inp

CVE-2025-12421 CRITICAL
9.9 Nov 27

Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that t

CVE-2025-12419 CRITICAL
9.9 Nov 27

Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validat

CVE-2026-4858 CRITICAL
9.9 May 21

Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the

CVE-2023-6458 CRITICAL
9.8 Dec 06

Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf

CVE-2020-26276 CRITICAL
9.8 Dec 17

Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2025-24490 CRITICAL
9.6 Feb 24

Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to use prepared statemen

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy