# Leaked Finnhub Access Token? Rotate It and Check Quota

> Finnhub API token exposed in a repo or front-end app? Rotate it on your dashboard, check request usage and move it to a server. Step-by-step guide.

Source: https://leakwatch.net/secrets/finnhub-access-token

---

[LeakWatch](/)

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

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Finnhub Access Token

Databases & keys · Secret guide

# Leaked Finnhub Access Token: what to do in the first hour

High severityDetected onlyLast verified November 5, 2026 · 5 min read

A Finnhub access token is the key that a financial data application uses to call the Finnhub market data API. It identifies your account, so whoever holds it can make requests against your plan’s quota. The data itself is usually public market information, so the direct harm of a leak is smaller than with a payment or cloud key. The practical costs are a drained quota that breaks your application, a bill if your plan is metered, and an account that can be tied to abuse. Rotate the token first, then check the usage.

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

Provider

Finnhub

Severity

High

Impact

SaaS account access and billing

Checked live by LeakWatch

No

## What a Finnhub Access Token looks like

Finnhub tokens are short strings of letters and digits, with no distinctive prefix. That makes them harder to spot than most keys, so the way to find one is by the name it is stored under, such as `finnhub_token` or `FINNHUB_API_KEY`, or by the request that sends it:

```text
finnhub_token = "…XXXX"   Finnhub access token in a script (masked)
```

Finnhub’s documentation and the integration guides consulted for this page describe passing the token as a request header, and some examples show it as a query parameter. A query parameter is easier to leak, because the full URL tends to end up in logs, browser histories and error reports. Prefer the header wherever the client library allows it.

Because the token has no prefix, a match in a file is only as reliable as the context around it. A short, unrelated string next to the word “token” is not a leak. A value that sits next to the Finnhub name, in a file that calls the Finnhub API, should be treated as a live credential.

## How Finnhub Access Tokens get leaked

-   **Client-side applications.** A token placed in a web page or mobile app to fetch quotes directly. Anyone who opens the page can read it from the network traffic or the source.
-   **Committed configuration.** A `.env` or settings file with the token, pushed to a repository that was public at some point.
-   **Notebooks and scripts.** A token typed into a data analysis script or notebook, then saved and shared with the output.
-   **Dashboard tools.** A trading or monitoring tool that stores the token in plain text in its configuration folder, copied to a shared drive.
-   **Shared examples.** A snippet pasted into a forum post or a support question to show how to call the API.

## What to do in the first hour

1.  **Rotate the token.** Sign in to your Finnhub dashboard, where the account’s API key is shown, and generate a new one if the dashboard offers that option. If you cannot find a way to regenerate it, contact Finnhub support with the details of the exposure. Do not wait for the quota to run out before acting.
2.  **Update your application** with the new token, and store it in a server-side environment variable or a secret manager. Do not put it in code that runs in a browser or in a mobile app.
3.  **Check your request usage** in the dashboard for the period since the token may have been exposed. A sudden spike in requests, calls at unusual hours, or requests for symbols you do not follow are signs that someone else used the token.
4.  **Look at your plan and billing.** If your plan is metered or has overage charges, check whether the usage has produced any unexpected costs, and raise the question with the provider if it has.
5.  **Check the other secrets** that sat in the same file. Rotate any database password, cloud key or webhook secret that was stored next to the Finnhub token.
6.  **Clean the code.** Replace the value with a reference to the environment variable, and check the repository history for older copies. 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 project? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at Finnhub

The token is shown on your Finnhub dashboard after you sign in. Open the account settings and look for the API key section. Finnhub’s dashboard is the place to check the current key, and a third-party integration guide mentions that a compromised key can be regenerated from there. This guide could not confirm the exact button, its location or whether the old token stops working immediately, so check those details on the live dashboard. If you cannot find a way to rotate the key yourself, ask Finnhub support to do it and keep a written record of the request.

## How LeakWatch detects it

The rule is called “Finnhub Access Token”. It looks for the word `finnhub` close to an assignment, such as an equals sign or a colon, followed by a value of twenty letters or digits in quotes or on its own. The word must appear before the value, within a short distance of it. A bare string with no Finnhub context is not reported. The severity is **high**, with the impact class for SaaS accounts, because the token consumes the account’s quota. **This type is not checked live**: LeakWatch does not send the token to Finnhub to see 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 market data itself sensitive?

Usually not. Most market data is public. The risk is the account: quota that someone else uses, costs you pay, and an account that can be linked to abuse. Treat the token as a credential even though the data is public.

Why is my token in a query string a bigger risk?

A query parameter is written into the full URL, which many tools log. Logs, browser histories and error reports can keep the token long after the request is over. Moving the token into a request header keeps it out of most of those places.

Can I just leave the old token active for a while?

That defeats the point of rotation. Once the new token is in place and tested, make sure the old one is no longer accepted, or ask the provider to disable it if you cannot do it yourself.

## Related

-   [Airtable Personal Access Token](/secrets/airtable-personal-access-token)
-   [Algolia Admin API Key](/secrets/algolia-admin-api-key)
-   [Bugsnag API Key](/secrets/bugsnag-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 Finnhub.

![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)
