Bypassing the new feature in Gitlab 18.0 "Disable user invitations"
A new GitLab 18.0 setting meant to stop users from inviting others could be bypassed by inviting an entire group instead. An attacker with invitation rights could still add a whole group of users to the target group despite the restriction.
GitLab
Originally disclosed on GitLab
- Fixed in 51 days
- Disclosed after 51 days
⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.
HackerOne report #3148693 by mateuszek on 2025-05-15, assigned to @katwu:
Report | Attachments | How To Reproduce
Report
1. Description:
There is the new feature in Gitlab 18.0 named "Disable user invitations" - I found bypass for it :)
docs: https://about.gitlab.com/releases/gitlab-com/#disable-user-invitations

In general if we turn on this feature then user with access to invite other users or groups to our group doesn't see buttons to invite a user or a group to our group BUT I found that it is still possible to invite the whole group with users to our group without any problems!
It is a bit complicated scenario - I will write the steps soon in the comment for this report!
Best regards,
Mateusz
Impact
- Bypassing the new feature in Gitlab 18.0 "Disable user invitations"
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the new restriction only hid or blocked the user-invitation path and did not apply the same check to group invitations.
What the attacker needed
GitLab 18.0 with the setting enabled; Attacker has invite rights in the group
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
GitLab lets people with the right permissions add other users to a group. A new setting was supposed to block that, but the reporter found another way in: adding a whole group at once rather than individual users. This means the restriction could be sidestepped.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.