CVE-2026-18399: Improper Namespace Access Restriction in Mattermost GitLab Plugin (Permalink Preview and MCP get_projects)
Mattermost versions 11.7.x <= 11.7.11, 11.10.x <= 11.10.2, 11.11.x <= 11.11.1 fail to enforce the configured GitLab group/namespace restriction on the permalink code-preview feature and the {{getprojects}} MCP tool, which allows an authenticated user with a connected GitLab account to retrieve repository file content or project metadata from projects outside the restricted group via a crafted GitLab permalink or MCP tool call. Mattermost Advisory ID: MMSA-2026-00750
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.0.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.7.12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.10.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.11.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Mattermost user must have a connected GitLab account. The issue affects users who can submit a crafted GitLab permalink or invoke the get_projects MCP tool.
When is a deployment exposed?
A deployment is exposed when it uses an affected Mattermost version and has a configured GitLab group or namespace restriction. The restriction is not enforced for permalink code previews or the get_projects MCP tool.
What information could be accessed?
An attacker could retrieve repository file content through a crafted GitLab permalink or obtain project metadata through an MCP get_projects tool call. The accessible projects may be outside the configured restricted group.
How can I determine whether this affects my Mattermost version?
Check whether Mattermost is in the 11.7.x series through 11.7.11, 11.10.x series through 11.10.2, or 11.11.x series through 11.11.1. Also verify whether GitLab group or namespace restrictions are configured and whether the affected preview or MCP functionality is available.