# Leaked Clojars Deploy Token? Disable It and Audit Releases

> Clojars deploy token exposed on GitHub? Disable it, review published versions and rotate CI credentials. Step-by-step guide.

Source: https://leakwatch.net/secrets/clojars-deploy-token

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Clojars Deploy Token

Code & CI · Secret guide

# Leaked Clojars Deploy Token: what to do in the first hour

High severityDetected onlyLast verified October 30, 2026 · 4 min read

A Clojars deploy token lets whoever holds it publish artifacts to the Clojars repository as the account that created it. Clojars is the main community repository for Clojure libraries, so a stolen token can push a new version of a library you maintain, and anyone who updates their dependencies will pull it. That is a supply chain attack: the code runs on the machines of your users, with their privileges. An unscoped token can deploy anything the account is allowed to deploy. Disable the token first, then check what was published.

[Check your GitHub account for leaked secrets — free](/)

Provider

Clojars

Severity

High

Impact

Source code and build access

Checked live by LeakWatch

No

## What a Clojars Deploy Token looks like

A Clojars deploy token starts with `CLOJARS_` followed by 60 letters and digits:

```text
CLOJARS_XXXXXXXX…   60 characters after the prefix in a real value (masked)
```

It is used in place of a password when you deploy, so it appears next to the account username in `project.clj`, `profiles.clj`, `deps.edn` tooling, `~/.lein/credentials`, or in CI variables named `CLOJARS_PASSWORD` or `CLOJARS_TOKEN`. Clojars tokens can be limited to a single artifact, to a group, or to one use, and can have an expiry time, but a token with no limits can deploy any artifact the account may deploy. The token is different from your account password, and it is shown only once when created. You cannot tell from the value alone how narrow its scope is, so check it on the token page.

## How Clojars Deploy Tokens get leaked

-   **Build configuration.** A Leiningen or build-tool file committed with the token written as the deploy password.
-   **Credentials files.** A copy of the local credentials file added to a repository by mistake, or included in a Docker image layer.
-   **CI pipelines.** A release job that prints its environment, or a workflow file with the token inline rather than in a secret store.
-   **Release scripts.** Shell scripts that call the deploy command with the token as an argument, then end up in shell history or logs.
-   **Support requests.** A token pasted into an issue or chat while debugging a failed deployment.

## What to do in the first hour

1.  **Disable the token.** Sign in to Clojars (see the link below), open the page that lists your deploy tokens and disable the exposed one. A disabled token cannot be re-enabled, which is what you want.
2.  **Create a replacement** with the narrowest scope that works, such as a single artifact or group, plus an expiry date, and put it in your CI secret store.
3.  **Review your published versions.** Open each project you maintain and compare the list of versions with your own release history. Look for versions you did not publish, or recent changes to a version you did.
4.  **Check the contents.** For anything suspicious, download the artifact and compare it with your source: new dependencies, changed build steps, odd network calls.
5.  **Warn your users** if a bad version was public, and publish a clean release with a higher version number. Ask Clojars maintainers for help with removing the bad one.
6.  **Check other credentials.** Rotate the account password if it was in the same file, and review the groups your account belongs to.
7.  **Clean up the code** and the history. See [I accidentally pushed an API key to GitHub](/blog/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 Clojars

Clojars deploy tokens are managed from the tokens page of your Clojars account, after you sign in. The project wiki describes that page as the place where tokens are created and listed, and where an existing token can be disabled; once disabled, it cannot be turned back on. Tokens cannot be edited, so to change a scope you disable the old one and create a new one. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if the page differs from this description, look for the section where deploy tokens are shown, and follow the Clojars documentation.

## How LeakWatch detects it

The rule is called Clojars API Token. It recognizes the literal prefix `clojars_` followed by exactly 60 letters and digits, with word boundaries on both sides, and it does not need a variable name next to it. The match ignores letter case, so `CLOJARS_` and `clojars_` are both reported. A value with 59 characters, another prefix in front of it, or an underscore inside the body is not reported. The severity is **high**. This type is not checked live: LeakWatch does not send any request to Clojars 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 someone publish a new version of my library with the token?

Yes, if the token covers that artifact. An unscoped token covers everything your account may deploy, so check the published versions of every project you maintain.

Does a single-use token still matter?

Less, once it has been used, but check whether it was spent on a release you did not make. If it was never used, disabling it removes the risk.

Can I just change my account password instead?

No. Deploy tokens are separate credentials, so changing the password does not disable them. Disable the exposed token on the token page.

## Related

-   [npm Access Token](/secrets/npm-access-token)
-   [PyPI Upload Token](/secrets/pypi-upload-token)
-   [RubyGems API Token](/secrets/rubygems-api-key)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with Clojars.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
