title: Invite ID available to team admins even without the "Add Members" permission
description: Improper Access Control in Mattermost Server versions 9.5.x before 9.5.2, 9.4.x before 9.4.4, 9.3.x before 9.3.3, 8.1.x before 8.1.11 lacked proper access control in the `/api/v4/users/me/teams` endpoint allowing a team admin to get the invite ID of their team, thus allowing them to invite users, even if the "Add Members" permission was explicitly removed from team admins.
problem types: CWE-284: Improper Access Control
affected:
{
defaultStatus: unaffected
product: Mattermost
vendor: Mattermost
versions:
lessThanOrEqual: 9.5.1, status: affected, version: 9.5.0, versionType: semver
lessThanOrEqual: 9.4.3, status: affected, version: 9.4.0, versionType: semver
lessThanOrEqual: 9.3.2, status: affected, version: 9.3.0, versionType: semver
lessThanOrEqual: 8.1.10, status: affected, version: 8.1.0, versionType: semver
status: unaffected, version: 9.6.0
status: unaffected, version: 9.5.2
status: unaffected, version: 9.4.4
status: unaffected, version: 9.3.3
status: unaffected, version: 8.1.11
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: LOW
baseScore: 4.7
baseSeverity: MEDIUM
confidentialityImpact: LOW
integrityImpact: LOW
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Update Mattermost Server to versions 9.6.0, 9.5.2, 9.4.4, 9.3.3, 8.1.11 or higher.