Mattermost 6.4.x and earlier fails to properly invalidate pending email invitations when the action is performed from the system console, which allows accidentally invited users to join the workspace and access information from the public teams and channels.
Credits
Thanks to mr_anon (mr_anksec) for contributing to this improvement under the Mattermost responsible disclosure policy.