Skip to content
Code & CI · Secret guide

Leaked GitLab incoming mail token: what to do in the first hour

High severityDetected onlyLast verified · 4 min read

A GitLab incoming mail token is the secret built into the email address that GitLab gives you for creating issues or merge requests by email. Anyone who has the address can send a message that GitLab acts on, so the token is effectively a credential. Public write-ups in 2026 argued that the token can act on the account that owns it and does not expire by default. Whether that applies to your setup depends on which email features you use, so check your own configuration. Reset the token first, then look at what arrived by email.

Check your GitHub account for leaked secrets — free

Provider
GitLab
Severity
High
Impact
Source code and build access
Checked live by LeakWatch
No

What a GitLab incoming mail token looks like

The token sits inside an email address, not in a separate field. It begins with the fixed prefix glimt-, followed by a random run of letters, digits, underscores and hyphens:

…+glimt-…[email protected]   incoming mail address (masked)

The address appears in the project or user interface under the email-to-issue option. Because it looks like an ordinary address, people copy it into bug reports, screenshots and documentation without noticing that the local part carries the secret.

How GitLab incoming mail tokens get leaked

  • Shared screenshots. A screenshot of the email dialog posted in an issue, a chat or a presentation.
  • Documentation and templates. A project README, issue template or wiki page that shows the real address as an example.
  • Forwarded messages. An address copied into a forwarded email or a ticket that is later shared outside the team.
  • Scripts and integrations. A configuration file for a mail integration that stores the address in a repository.
  • Public projects. An address visible in a public issue, merge request or pipeline output.

What to do in the first hour

  1. Reset the token. Open the account settings where incoming email addresses are managed, and use the reset option for the token. The old address stops working, and every address that used the same token is replaced. Anything you had shared with a colleague must be updated.
  2. Review recent issues and merge requests. Look for items created by email that you did not expect. Pay attention to content that asks for a change in a protected branch or a pipeline run.
  3. Check pushes and pipelines. Public write-ups in 2026 described the token being able to push code and run CI for the account. Review the commits and pipelines since the exposure, especially on the default branch.
  4. Review access. Check who can push to protected branches and whether the account that owns the token has more rights than it needs.
  5. Decide whether you need email at all. If your team does not create work items by email, disable the feature for the project or ask the instance administrator to turn it off.
  6. Remove the address from shared places. Edit the issue, wiki and documentation pages where it appeared, and tell people the address has changed.

Not sure what else leaked from the same account? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at GitLab

Open the account settings for the account or project that owns the address and reset the incoming email token from the place GitLab shows the address. The exact location has moved between GitLab versions, and public sources disagree on which page holds the reset option. GitLab’s documentation for incoming email and Service Desk describes the setting, so check it for your version before you act. A GitLab administrator can also disable incoming email for the whole instance. This guide has not been checked against the live interface.

How LeakWatch detects it

The rule is called “GitLab Incoming Mail Token”. It looks for the fixed prefix glimt- followed by 25 letters, digits, underscores or hyphens. No surrounding text is needed, because the prefix is distinctive. The severity is high. This type is not checked live: LeakWatch does not send an email or call GitLab with the value, so a hit tells you the address was present in the scanned content, not whether it still works.

LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

FAQ

Is the address itself a password?

In effect, yes. The token is inside it, so anyone who has the whole address can send email that GitLab processes. Treat the full address like any other credential.

Will resetting the token break email features?

Yes, for any address that used the old token. Tell the people who use those addresses, and update any integration that stored one.

Can I tell whether someone used the address?

Review the issues, merge requests and commits created in the exposure window, and compare them with what your team expects. Unexplained items created by email are the main sign.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with GitLab.