Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege Mattermost account
-
DeliveryCraft API request with path traversal in ID parameter
-
ExploitSubmit request to affected API route
-
ExecutionServer constructs malformed route path without sanitization
-
PersistRequest resolves to unintended API endpoint
-
ImpactRead 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Network-reachable by any authenticated low-privilege user; path traversal yields bounded read/write at unintended endpoints, no scope change or availability impact.
Primary rating from Vendor (mattermost).
CVSS VectorVendor: mattermost
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Mattermost
View allMattermost 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
Denial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s
A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto
Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w
A remote code execution vulnerability (CVSS 9.9) that allows authenticated users. Critical severity with potential for s
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
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
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
Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the
Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf
Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
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
EUVD-2026-39661
GHSA-72v2-v53v-4qmm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB