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
Lifecycle Timeline
1DescriptionCVE.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
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the
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
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
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-39661
GHSA-72v2-v53v-4qmm