BreachSpiderVerified, not vibes

CVE-2024-40886 in Mattermost

High 8.8 Fix available

Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 fail to sanitize user inputs in the frontend that are used for redirection which allows for a one-click client-side path traversal that is leading to CSRF in User Management page of the system console.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS0.3%
EPSS percentile17th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mattermost Mattermost ≥ 9.5.0, < 9.5.8 ≥ 9.8.0, < 9.8.3 ≥ 9.9.0, < 9.9.2 ≥ 9.10.0, < 9.10.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 fail to sanitize user inputs in the frontend that are used for redirection which allows for a one-click client-side path traversal that is leading to CSRF in User Management page of the system console.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-40886
BreachSpider IDBS-2024-GLOBAL-202110-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2024-08-22
Last modified2024-08-23
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-352: Cross-Site Request Forgery (CSRF)

Web application does not verify that a request was intentionally sent by the authenticated user.

Related attack patterns (CAPEC)

CAPEC-462 Cross-Domain Search Timing via CWE-352

CAPEC-467 Cross Site Identification via CWE-352

CAPEC-62 Cross Site Request Forgery via CWE-352

CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-352

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

{ "executive_summary": "Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 are vulnerable to a one-click client-side path traversal leading to CSRF in the User Management page of the system console due to insufficient sanitization of user inputs used for redirection.", "attack_vector_detail": "An attacker can exploit this vulnerability by crafting a malicious URL that, when clicked by an authenticated user, can perform unauthorized actions in the User Management page of the Mattermost system console. The vulnerability arises from the frontend's failure to properly sanitize user inputs that are used for redirection, allowing for path traversal.", "affected_components": ["Mattermost versions 9.9.x <= 9.9.1", "Mattermost versions 9.5.x <= 9.5.7", "Mattermost versions 9.10.x <= 9.10.0", "Mattermost versions 9.8.x <= 9.8.2"], "exploitation_likelihood

Vulnerability details: Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 fail to sanitize user inputs in the frontend that are used for redirection which allows for a one-click client-side path traversal that is leading to CSRF in User Management page of the system console. CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Questions

What is CVE-2024-40886?

{ "executive_summary": "Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 are vulnerable to a one-click client-side path traversal leading to CSRF in the User Management page of the system console due to insufficient sanitization of user inputs used for redirection.", "attack_vector_detail": "An attacker can exploit this vulnerability by crafting a malicious URL that, when clicked by an authenticated user, can perform unauthorized actions in the User Manage

What is the CVSS score for CVE-2024-40886?

CVE-2024-40886 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.3%.

Is CVE-2024-40886 actively exploited?

No confirmed active exploitation of CVE-2024-40886 as of 2026-05-30.

How do I remediate CVE-2024-40886?

Priority: MEDIUM. Advisory: https://mattermost.com/security-updates PSIRT: [email protected]

What systems are affected by CVE-2024-40886?

CVE-2024-40886 affects Mattermost Mattermost.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mattermost","product":"Mattermost","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-08-23.