A GitLab instance runner's maintenance note can be seen by other users via the API and GraphQL
A maintenance note on a GitLab instance runner, intended to be visible only to administrators, could be read by any authenticated user through the REST API and GraphQL. An attacker could enumerate runner IDs and retrieve the note text.
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 #3173328 by iamgk808 on 2025-06-01, assigned to @katwu:
Report | Attachments | How To Reproduce
Report
Summary
In a GitLab self-managed instance, on the CI/CD > Runners page, we can view the details of a runner where an administrator can add a note called Maintenance Note. This note is intended to be visible only to administrators. However, I found that any user can see the Maintenance Note via the API and GraphQL

Steps to reproduce
-
Use GitLab self-instance
-
two users - admin, attacker
admin steps
- As admin, go to
admin area>CI/CD>runners - Click on
create instance runnerand add some details in theMaintenance note& click oncreate runner

- On the next page, just don't do anything and click on View Runners

- Note the ID of the runner from the page URL (The runner ID is just an incremental numerical ID, so it's easy to guess)

attacker steps
- Log in as attacker
- Now visit
http://localhost/api/v4/runners/5, wherelocalhostis replaced with your instance URL &5is the runner ID

- Open http://localhost/-/graphql-explorer & use this below request
query {
runner(id: "gid://gitlab/Ci::Runner/5") {
id
description
maintenanceNoteHtml
maintenanceNote
}
}

Impact
The instance runner's maintenance note is seen by non-admin users
Examples
What is the current bug behavior?
The instance runner's maintenance note is seen by non-admin users
What is the expected correct behavior?
Only admins should see the maintenance notes
Relevant logs and/or screenshots
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
GitLab information
Version: 18.0.1-ee
Revision: 3426be1b938
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 16.8
URL: http://localhost
HTTP Clone URL: http://localhost/some-group/some-project.git
SSH Clone URL: git@localhost:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 14.42.0
Repository storages:
- default: unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Gitaly
- default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version: 18.0.1
- default Git Version: 2.49.0.gl2
Impact
The instance runner's maintenance note is seen by non-admin users
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
Proposal
After discussing in the Fleet Visibility weekly meeting, we decided to go forward with:
- Changing the UI to mention that the field is visible to runner maintainers (as opposed to administrators)
- Locking down the respective fields in GraphQL and REST API runner type so that the field is only visible to runner maintainers.
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 runner API and GraphQL resolver exposed the maintenance note field without checking whether the requesting user was an administrator.
Impact
Non-admin users could read the instance runner's maintenance note.
What the attacker needed
GitLab self-managed instance; an authenticated non-admin account; a runner with a maintenance note
The fix
The proposal is to change the UI wording and restrict the maintenance note fields in GraphQL and REST so only runner maintainers can see them.
How it was found
- As admin, create an instance runner with a maintenance note.
- Note the runner ID from the page URL.
- Log in as a non-admin user.
- Request the runner details through the REST API using the runner ID.
- Query the runner through GraphQL and read the maintenance note fields.
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 administrators add a private note to a shared CI/CD runner. The report shows that this note was not actually kept private: any logged-in user could ask the server for runner details and receive the note. The runner ID is a simple number, so guessing other runners' IDs is easy.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.