CVE-2026-9162: Mattermost WebSocket Session Revocation Bypass – CVSS 4.3
Mattermost has a session management flaw affecting versions 11.7.0, 11.6.2 and earlier, 11.5.5 and earlier, and 10.11.17 and earlier. When an administrator revokes a user's global session—such as during offboarding or after detecting unauthorized access—the system fails to immediately disconnect active WebSocket connections used for real-time messaging and notifications. An attacker or departing employee with an existing connection can remain authenticated and continue receiving live team communications until their cached session naturally expires or they manually reconnect. This is a persistence risk in environments where rapid session termination is critical for security or compliance.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses (CWE)
- CWE-613
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-22 / 2026-06-23
NVD description (verbatim)
Mattermost versions 11.7.x <= 11.7.0, 11.6.x <= 11.6.2, 11.5.x <= 11.5.5, 10.11.x <= 10.11.17 fail to invalidate cached authentication state for active WebSocket connections during global session revocation, which allows a user with an existing WebSocket connection to remain authenticated and continue receiving real-time events until the cached session expires or the client reconnects.. Mattermost Advisory ID: MMSA-2026-00664
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from incomplete cache invalidation in Mattermost's WebSocket authentication layer. During global session revocation, the application correctly invalidates standard HTTP sessions but neglects to revoke cached authentication tokens for persistent WebSocket connections. CWE-613 (Insufficient Session Expiration) classifies this gap. A user maintaining an open WebSocket connection at the time of session revocation will retain access because the server does not actively challenge or invalidate the cached authentication state on the persistent channel. The session persists until either the client-side cache timeout is reached or the client voluntarily reconnects and must re-authenticate.
Business impact
For organizations using Mattermost as their primary team collaboration platform, this vulnerability creates a window of continued unauthorized access after session revocation. In regulated industries (finance, healthcare, government), this delays compliance with data access controls and incident response procedures. When a user is terminated or credentials are compromised, the delay in actual access termination—potentially hours depending on cache timeout settings—increases exposure to data leakage or lateral movement. Teams and channels that should be immediately restricted remain accessible to a departing or compromised user.
Affected systems
Mattermost Server is affected in the following versions: 11.7.x up to and including 11.7.0; 11.6.x up to and including 11.6.2; 11.5.x up to and including 11.5.5; and 10.11.x up to and including 10.11.17. Versions below these thresholds are unaffected. The issue is specific to Mattermost Server and does not directly affect Mattermost clients or third-party integrations, though any client maintaining an active WebSocket connection is vulnerable to the continuation of the expired session.
Exploitability
Exploitation requires an existing WebSocket connection established before the global session revocation occurs. An attacker cannot remotely initiate a new connection; they must already be authenticated and connected at the moment the administrator revokes their session. This limits the attack surface to active sessions, reducing opportunistic exploitation potential. However, the ease of maintaining a persistent connection—especially in a work-from-home environment where users may leave browsers open—means the risk is material. An attacker who has compromised a user account has a high probability of maintaining an active connection, and administrators may not notice the breach until the cache expires.
Remediation
Organizations should upgrade to patched versions as released by Mattermost. Verify against the vendor's official advisory (MMSA-2026-00664) for confirmed fixed version numbers. As an interim control, administrators can mitigate risk by reducing the WebSocket cache timeout configuration if available in your deployment, forcing more frequent re-authentication. Additionally, monitor for unusual activity on revoked accounts and train teams on the importance of closing browsers and re-logging in after credential compromise or offboarding.
Patch guidance
Consult Mattermost's official advisory MMSA-2026-00664 for the specific patched versions applicable to your release branch. If you are running 11.7.0, 11.6.2, 11.5.5, or 10.11.17 (or earlier within those branches), a patch is available. Plan upgrades during a maintenance window, as WebSocket connections will be disrupted during server restart, forcing clients to reconnect and re-authenticate. This forced reconnection is actually beneficial as it clears the vulnerable cached state. Test in a staging environment first to confirm compatibility with your custom integrations or plugins.
Detection guidance
Monitor WebSocket connection logs for sessions that persist after global revocation events. If your Mattermost deployment logs authentication state changes and connection lifecycle events, look for entries showing a user receiving real-time events (presence updates, message notifications) after their session was administratively revoked. This can be correlated with admin audit logs showing a 'revoke session' action. Alerting on this pattern is impractical without additional instrumentation, so prioritize log review during post-incident analysis. Network monitoring of WebSocket frame payloads is not recommended due to encryption and complexity; rely instead on application-level logs and audit trails.
Why prioritize this
Although this vulnerability has a CVSS score of 4.3 (Medium), its context matters. The attack requires pre-existing authentication and happens only after an administrator has already taken action to revoke access—a relatively rare triggering condition. However, the condition directly contradicts the intended security control (session revocation), making it high-priority for environments with strong offboarding procedures, high-value data in Mattermost, or regulatory requirements for immediate access termination. Organizations should patch within 60 days; those handling sensitive data should accelerate to 30 days.
Risk score, explained
CVSS 4.3 reflects a network-adjacent attack (WebSocket over the same network as HTTP), requiring prior authentication and user interaction (the user must have an active connection). Confidentiality impact is Low because the attacker reads messages on teams they were already a member of; there is no elevation of privilege or new access. No integrity or availability impact is scored. The risk is heightened by the fact that the vulnerability directly undermines a critical administrative control—session revocation—and organizations relying on Mattermost for confidential team communication should consider their operational context. A CVSS of 4.3 should not minimize the patch priority in high-security environments.
Frequently asked questions
If I revoke a user's session, are they immediately kicked out of Mattermost?
No, not entirely. If the user has an active WebSocket connection (a browser tab or client with an open real-time channel), they will remain connected and able to see live messages and team activity until their cached authentication token expires or they manually close and reopen the client. Standard HTTP-based access (e.g., file uploads, API calls) is blocked immediately. This is the core vulnerability.
How long will a user remain authenticated after session revocation?
The duration depends on the WebSocket cache timeout configured in your Mattermost instance, which is typically several hours by default. Consult your system administrator or Mattermost configuration documentation for the exact value in your environment. The longer the timeout, the wider the exposure window.
Do I need to patch if I have strict network controls and my Mattermost server is behind a VPN?
Network perimeter controls do not mitigate this vulnerability because the attack occurs between an already-authenticated internal user and the server. If your threat model includes malicious insiders or compromised employee credentials, patching is essential regardless of network architecture.
Can I work around this without upgrading?
Partial mitigation: reduce the WebSocket cache timeout if your Mattermost configuration exposes this setting, and brief administrators that session revocation may require asking the user to close their browser or client to take full effect. However, these are not substitutes for patching. Upgrade at your earliest opportunity.
This analysis is based on CVE-2026-9162 and Mattermost Advisory MMSA-2026-00664 as of the publication date. Patch version numbers, affected version ranges, and advisory details are sourced from official Mattermost releases; verify the specific patched version for your deployment against the vendor advisory before applying patches. This vulnerability has not been added to the CISA KEV catalog and no public exploits have been disclosed as of this writing. Security decisions should incorporate your organization's risk profile, data sensitivity, and regulatory obligations. Consult your Mattermost vendor support or security team for guidance specific to your instance configuration. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-12772MEDIUMSession Expiration Flaw in BerriAI litellm Proxy Authentication
- CVE-2026-12796MEDIUMlitellm SSO Session Expiration Vulnerability (CVSS 6.3)
- CVE-2026-44188MEDIUMAnsible Lightspeed Session Hijacking via Token Non-Revocation
- CVE-2026-48726MEDIUMApache Airflow JWT Token Revocation Bypass in FAB and Keycloak Logout
- CVE-2026-53824MEDIUMOpenClaw Token Revocation Bypass (CVSS 6.5)
- CVE-2026-53830MEDIUMOpenClaw Webhook Secret Revocation Bypass (CVSS 6.5)
- CVE-2026-55423MEDIUMLangflow Session Invalidation Flaw—Impact, Patch & Detection
- CVE-2026-9802MEDIUMKeycloak Refresh Token Replay After Revocation