Skip to content
Code & CI · Secret guide

Leaked GitLab Feed Token: what to do in the first hour

High severityDetected onlyLast verified · 4 min read

A GitLab feed token authenticates a user when GitLab content is read as an Atom or RSS feed, or as a calendar. It is personal: it belongs to one account and gives read access to the feeds that account can see, which includes private projects, issues and merge requests. The main danger is information disclosure, such as titles, comments and activity from private work, rather than changes to code. The token is easy to leak because it sits inside a URL that people copy and share. Reset it first, then check what your feeds exposed.

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 Feed Token looks like

The current format has a fixed prefix followed by 20 characters of letters, digits, dashes and underscores:

glft-XXXXXXXX…   GitLab feed token (masked, 5-character prefix + 20 characters)

Feed tokens created before the prefix was introduced are plain strings with no recognizable start, so an old feed URL may carry a token that does not look like this. In practice the value shows up in a URL query string, as feed_token= followed by the value (older URLs used rss_token=), on links ending in .atom or .ics, or in a variable such as GITLAB_FEED_TOKEN. Do not confuse it with a personal access token (glpat-), which can call the API with write scopes, or with a pipeline trigger token (glptt-). Both are separate credentials.

How GitLab Feed Tokens get leaked

  • Shared feed links. Someone copies the RSS or Atom link of a project or of their own activity into a chat channel, wiki or README, and the token goes with it.
  • Reader and dashboard setups. A feed reader, status board or calendar subscription is exported, and its configuration file is committed.
  • Browser history and referrers. A URL with the token in the query string is stored in logs of proxies and analytics tools.
  • Scripts that poll feeds. A monitoring script pulls project activity and has the full URL written into its source.
  • Screenshots and bug reports. A page address is included in a support request.

What to do in the first hour

  1. Reset the feed token. Sign in as the user the token belongs to, open your user settings, and find the section for the feed token. Resetting generates a new value and the old one stops working. See the revocation section below.
  2. Update your legitimate readers. Replace the URL in feed readers and calendars that you use yourself with the new one.
  3. List what the token could see. The token reads whatever the account can: private projects, issues, merge requests and group activity. Open your account’s activity page and note which private projects and groups are reachable.
  4. Judge the exposure. Titles, descriptions and comments may have contained sensitive details. If so, treat anything that appears in them, such as credentials pasted into an issue, as leaked and rotate it.
  5. Check other credentials of the same account. Review your personal access tokens, SSH keys and active sessions in the user settings, and remove any you do not recognize.
  6. Clean up the code where the URL was committed, and search for other secrets nearby. See I accidentally pushed an API key to GitHub.

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

Not sure what else leaked? Run a free scan.

Revoke it at GitLab

The feed token is managed per user, not per project. Sign in to your GitLab account settings and look for the section where the feed token is shown, which is part of the access token area of your user profile. There is a reset action that issues a new token and invalidates the previous one. A person has not confirmed the exact menu wording for this guide, and GitLab moves these pages between releases, so if the page differs from this description, look for the section where feed tokens are listed, and follow the GitLab documentation on tokens. On a self-managed instance, an administrator can also reset a user’s tokens.

How LeakWatch detects it

The rule is called GitLab Feed Token. It looks for the literal prefix glft- followed by exactly 20 characters from letters, digits, dashes and underscores. The pattern has no boundary at the end, so a longer run of such characters after the first 20 can still produce a match on its first 20. A value with fewer than 20 characters, or with another prefix, is refused. Old feed tokens without a prefix are not reported. The severity is high. This type is not checked live: LeakWatch does not send any request to GitLab with the token it found.

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

Can a feed token push code or change settings?

No. It is meant for reading feeds and calendars. Its risk is exposure of private information, not write access, but treat any secrets mentioned in that information as compromised.

Does resetting the feed token log me out?

No. Resetting only replaces the feed token. Your password, personal access tokens and sessions stay as they are, so review them separately if the account might be at risk.

Why does a feed URL contain a token at all?

Feed readers and calendar apps cannot sign in interactively, so GitLab puts a per-user token in the address. That is why you should never share such a URL like a normal link.

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

LeakWatch is not affiliated with GitLab.