KeygraphLabs · CVE MCP

CVE-2017-18878 · mitre

CVE-2017-18878

An issue was discovered in Mattermost Server before 4.3.0, 4.2.1, and 4.1.2. Knowledge of a session ID allows revoking another user's session.

Published 2020-06-19, last changed 2026-06-17. Weakness: CWE-732.

CVSS
4.3
medium, from NVD
EPSS
0.78%
percentile 57.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: github.com/mattermost/mattermost-server 4.1.2-0.20171004201910-6be8113eb60c, 4.2.1-0.20171004192657-8fbbd688ea24, 4.3.0+incompatible, 4.3.0 (Go) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in mattermost/mattermost by 6be8113eb6, 8fbbd688ea, affd35071e. Functions changed by the fix: updateUser, patchUser, updateUserMfa, generateMfaSecret, revokeSession, createUserAccessToken, SessionHasPermissionToChannel, DoUploadFile, AllowOAuthAppAccessToUser, GetOAuthAccessToken, GetSessionById, componentWillMount. Regression tests: api/file_test.go, api/oauth_test.go, api4/channel_test.go, api4/command_test.go. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2020-06-19Published
2022-05-24Package advisory GHSA-h564-6gc2-fcc6
2025-12-15Package advisory GO-2025-4191
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.78%
2026-12-04Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-h564-6gc2-fcc6github.com/mattermost/mattermost-server (Go)4.1.2-0.20171004201910-6be8113eb60c
GHSA-h564-6gc2-fcc6github.com/mattermost/mattermost-server (Go)4.2.1-0.20171004192657-8fbbd688ea24
GHSA-h564-6gc2-fcc6github.com/mattermost/mattermost-server (Go)4.3.0
GO-2025-4191github.com/mattermost/mattermost-server (Go)4.3.0+incompatible

Also known as: GHSA-h564-6gc2-fcc6, GO-2025-4191

Related

CVEPublishedCVSSSummary
CVE-2026-88232026-06-223.8User Manager can demote bot accounts to guest without bot-management permission
CVE-2026-91622026-06-224.3Global session revocation does not invalidate active WebSocket connections
CVE-2026-80742026-06-223.8Improper Permission Check Allows User Manager to Deactivate Bot Accounts
CVE-2026-66732026-06-226.4Mattermost Jira plugin had unauthenticated {{/ac/installed}} lifecycle callback during pending Jira Cloud install
CVE-2026-60622026-06-226.4IDOR in Jira plugin subscription edit endpoint
CVE-2026-51392026-06-225.4GitLab Plugin Allows Non-Admin Users to Modify Default Instance Configuration
CVE-2026-73872026-06-128.8Mattermost group syncable endpoints allow privilege escalation via scheme_admin
CVE-2026-71842026-06-126.5Mattermost Remote Cluster PATCH API Leaks Authentication Tokens

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2017-18878, or call /api/v1/vulnerabilities/CVE-2017-18878. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org