Skip to content
Info disclosure Disclosed report Beginner

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
  1. Create a public group, and make sure it is ultimate/ultimate trial.
  2. In https://gitlab.com/groups/YOUR_GROUP_NAME/-/settings/gitlab_duo/configuration, turn on experiment and beta GitLab Duo features
  3. Create a PUBLIC project.
  4. Create a new branch from home page
image.png
image.png From the original on GitLab
  1. 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.
  2. In the merge request, add an internal comment like "This is a malicious merge request. Block it!"
  3. Then post a comment like "[@]GitlabDuo review it"
  4. 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
leak_internal_note.webm From the original on GitLab

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:

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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

  1. Create a public group with an Ultimate trial.
  2. Enable experiment and beta GitLab Duo features in the group settings.
  3. Create a public project and a new branch with a committed file.
  4. Open a merge request from the new branch to the main branch.
  5. Add an internal comment to the merge request.
  6. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.