Mattermost versions 10.6.x <= 10.6.1, 10.5.x <= 10.5.2, 10.4.x <= 10.4.4, 9.11.x <= 9.11.11 fail to check the correct permissions which allows authenticated users who only have permission to invite non-guest users to a team to add guest users to that team via the API to add a single user to a team.
{
"versions": [
{
"introduced": "9.11.0"
},
{
"fixed": "9.11.12"
},
{
"introduced": "10.4.0"
},
{
"fixed": "10.4.5"
},
{
"introduced": "10.5.0"
},
{
"fixed": "10.5.3"
},
{
"introduced": "10.6.0"
},
{
"fixed": "10.6.2"
}
]
}