Skip to content
Cloud · Secret guide

Leaked Webflow API Token: what to do in the first hour

High severityDetected onlyLast verified · 4 min read

A Webflow API token lets a script or an integration read and change the sites in a Webflow workspace through the Webflow API. Depending on the scopes it was created with, it can publish content, edit collections and CMS items, and in some cases change the site itself. A changed site goes live for every visitor, so a leaked token is a public-facing risk. Revoke it first, then check what changed on the site and whether anything was published that you did not approve.

Check your GitHub account for leaked secrets — free

Provider
Webflow
Severity
High
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What a Webflow API Token looks like

Webflow API tokens are strings of 64 letters and digits. They do not carry a distinctive prefix, so the rule relies on the word “webflow” appearing close to the value, as in an assignment inside a configuration file:

WEBFLOW_API_TOKEN=…   Webflow API token (masked)

The token is usually stored in a deployment variable, a content sync script or a build step that pulls CMS content into a static site. Because the value looks like a long random string, it is easy to mistake for a hash or an identifier. If a 64-character string sits next to the vendor’s name in a file, treat it as a token until you have checked.

How Webflow API Tokens get leaked

  • Sync scripts. A script that pulls CMS content into a repository, with the token written into a settings file that was committed.
  • Build configuration. A hosting or CI setting that writes the token into the code during the build.
  • Shared automations. A no-code connector or a script shared with a freelancer, with the token left in its configuration.
  • Logs. A build that prints the request it sends to the API when a publish step fails.
  • Public repositories. A starter theme or a demo project published with a working token in it.

What to do in the first hour

  1. Revoke the token. Open the account settings for your Webflow workspace, find the API token or app connection that leaked and revoke it. Do this before you investigate, because a live token can publish changes at any time.
  2. Create a replacement with only the scopes the integration needs, and store it in your CI or hosting secret store.
  3. Review the site history. Check the recent changes and publishes for each site in the workspace. Look for pages, text or scripts that you did not write.
  4. Check the custom code. Review any custom code added to the site’s head or body, since a script injected there runs for every visitor.
  5. Check the collections. Look for CMS items that were created, edited or deleted without your knowledge.
  6. Look at other secrets in the same file, such as hosting and deployment tokens. Rotate them too. See I accidentally pushed an API key to GitHub for the order of steps.
  7. Clean the repository. Read the token from a secret store and remove the value from current files.

Not sure what else leaked? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at Webflow

Tokens and app connections are managed in the workspace or site settings, under the integrations or apps area. Open account settings, find the token, and revoke it. After revoking, create a new one and update the integration. We have not confirmed whether every token type appears in the same place, so follow the labels on the page, and check that you are in the correct workspace.

How LeakWatch detects it

The rule is called Webflow API Token. It looks for the word “webflow” followed within about 40 characters by a value of exactly 64 letters or digits, with word boundaries on both sides. Values of another length, or values without the vendor’s name nearby, are not reported. The severity is high, with the impact class for SaaS tools. This type is not checked live: LeakWatch does not send a request to Webflow with the value 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 token publish my site without my approval?

If its scopes allow publishing, yes. Check the token’s permissions before you assume it is harmless, and review the publish history since the exposure date.

Will my site go down when I revoke the token?

The site itself stays up. Only the integrations that call the API stop working until you deploy the new token.

Is a read-only token safe to leave in a repository?

No. It can still reveal your content and structure, and it can be upgraded in future by mistake. Keep every token out of the source.

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

LeakWatch is not affiliated with Webflow.