Internal Note Leak From Gitlab Duo When Review Merge Request
GitLab Duo, when asked to review a merge request, sometimes summarised internal notes that should only be visible to project members. In a public project, anyone could then read those internal notes in the summary, leaking sensitive information.
GitLab
Originally disclosed on GitLab
- Fixed in 2 months
- Disclosed after 2 months
⚠️ 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 #3149956 by rogerace on 2025-05-16, assigned to @katwu:
Report | Attachments | How To Reproduce
Report
Summary
Hope this report finds you well!
I am actually not sure whether this is problem of Gitlab or "careless" Gitlab user.
When a user uses GitlabDuo to review merge request, I found that GitlabDuo would sometimes also summarize internal notes. This can happen when the internal note is important, like "This merge request is very dangerous! Block it!", or if you explicitly ask GitlabDuo, like "review this merge request and summarize the comments".
However, in a public project, using this feature would mean outsiders would see the internal notes summarized, which often contain sensitive information.
This vulnerability is different from common attack vectors because there is no active "attackers" here. By using GitlabDuo normally, a user may just accidentally leak internal notes without any interference from any attacker. I thought it may be warned by Gitlab, but looking at https://docs.gitlab.com/user/project/merge_requests/duo_in_merge_requests/, I also see nothing about this problem.
Therefore, I decide to report it here since the Gitlab user is just using the GitlabDuo normally by following the Docs.
Steps to reproduce
- Create a public group, and make sure it is ultimate/ultimate trial.
- In https://gitlab.com/groups/YOUR_GROUP_NAME/-/settings/gitlab_duo/configuration, turn on
experiment and beta GitLab Duo features - Create a PUBLIC project.
- Create a new branch from home page

- In the new branch, create a new file and commit it. And then create a merge request from this new branch to main branch by clicking on the "create merge request" button.
- In the merge request, add an internal comment like "This is a malicious merge request. Block it!"
- Then post a comment like "[@]GitlabDuo review it"
- You should see your internal note got summarized. If you visit this merge request in an incognito browser, you will see your internal note got leaked.
PoC
Impact
C: Low as it leaks internal note.
PR: None for public group
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 GitLab Duo review feature did not filter out internal notes when building the context or summary shown to users without permission to view them.
Impact
Internal notes containing sensitive information could be disclosed to anyone who can view the public project, with low confidentiality impact.
What the attacker needed
Public group on Ultimate or trial; experiment and beta Duo features enabled; public project; internal note on a merge request
How it was found
- Create a public group with an Ultimate trial.
- Enable experiment and beta GitLab Duo features in the group settings.
- Create a public project and a new branch with a committed file.
- Open a merge request from the new branch to the main branch.
- Add an internal comment to the merge request.
- Post a comment asking GitLab Duo to review it, then view the merge request in a private browsing window to see the internal note leaked.
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.
Internal notes are comments on a merge request that only project members can see. GitLab Duo is an AI helper that can summarise a merge request. The bug is that the AI helper included the secret internal notes in its summary, and that summary was visible to anyone, so outsiders could read the secret notes.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.