Tokens Studio | Home

Products

Resources

Company

Pricing

Tokens Studio | Home

Products

Resources

Company

Pricing

Tokens Studio | Home

Products

Resources

Company

Pricing

Bitbucket API token exposure in the Tokens Studio Figma plugin

Summary

Earlier versions of the Tokens Studio for Figma plugin could store a user's Bitbucket API token in plain text inside the Figma files they synced. Anyone with access to an affected file, or a copy of it, could read the token and use it to access that user's Bitbucket repositories.

We fixed the issue in version 2.13.4, released on 17 November 2026. The update removes stored tokens from files when they are next opened. Tokens in older copies of files remain valid until they are revoked, so affected users should revoke and replace their Bitbucket API token.

SeverityHigh (CVSS 3.1 base score 8.1)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
WeaknessCWE-312 (Cleartext Storage of Sensitive Information), CWE-200 (Exposure of Sensitive Information)
AffectedBitbucket sync configured with an API token, on all plans
Not affectedGitHub, GitLab, Azure DevOps, JSONBin, URL, Supernova, Generic Versioned Storage and Tokens Studio sync
Fixed in2.13.4
Reported bykta1kri

Technical details

The plugin removed credentials from its saved sync settings by field name, and only one name was checked. Bitbucket's API token used a different name, so it was saved unchanged.

To remember which remote storage a Figma file syncs with, the plugin saves the sync configuration (provider, repository, branch, file path) in the file's shared plugin data under the key tokens/storageType. Shared plugin data is part of the Figma document. Any plugin running in the file can read it, as can the Figma REST API, and it is copied whenever the file is duplicated.

Before saving, the plugin's serializer removed the field named secret, which is where every sync provider kept its credential. In September 2025, Bitbucket sync moved from app passwords to API tokens, and the token was added as a new field, apiToken. The serializer was not updated, so apiToken passed through and was written to the document in plain text.

The token was written whenever a user applied a saved Bitbucket sync to a file. For example, it was written when choosing a sync provider from the start screen or from Sync settings.

The relevant code is in the public repository tokens-studio/figma-plugin:

  • src/figmaStorage/StorageTypeProperty.ts: the serializer, JSON.stringify(omit(value, 'secret'))

  • src/types/StorageType.ts: the apiToken field on the Bitbucket storage type

  • src/app/store/remoteTokens.tsx: restoreStoredProvider(), which passed the full credentials to the document

Impact and affected versions

You are affected if you used Bitbucket sync with an API token in any plugin version from 2.8.0 (September 2025) up to, but not including, 2.13.4. This applies on all plans, free and paid.

Anyone who could open an affected file could read the token. This includes collaborators, people the file was shared with, people with access to a duplicate, and anyone who could open a file shared by public link. With the token, they could use the Bitbucket API with the token's permissions. Because sync needs write access to push changes, this usually meant reading and changing the contents of the repositories the token could reach.

The issue did not affect Bitbucket users still using app passwords, or any other sync provider. Tokens Studio's own systems were not involved, and the issue gave no access to other Tokens Studio user data.

We have no evidence that the issue has been exploited.

The fix

Version 2.13.4 stops credentials from reaching Figma files and removes any already stored there:

  • Allowlist instead of denylist. The plugin now writes only a fixed list of non-credential fields (provider, name, repository, branch, file path, base URL) to shared plugin data. Any field not on the list, including any credential added in future, stays out of the document by default.

  • Clean-up of existing files. When a file is opened with the updated plugin, any credential found in its stored sync configuration is removed and the file is rewritten without it.

  • Automated tests. New tests check, for every sync provider, that no credential field reaches shared plugin data.

  • User notice. Users with a Bitbucket API-token sync see an in-plugin notice asking them to replace their token.

Credentials themselves remain where they always belonged: in the plugin's local storage on your own device, which is not shared with the file.

What you need to do

If you have used Bitbucket sync with an API token, replace your token, even after updating the plugin. It takes about two minutes:

  1. Update the plugin to 2.13.4 or later. Figma usually updates plugins automatically when you next run them.

  2. Revoke your current token in your Atlassian/Bitbucket account settings, under Security → API tokens.

  3. Create a new API token with the same permissions.

  4. Find your Bitbucket sync in the plugin: open the Settings tab and look under Sync providers.

  5. Replace the token by choosing Edit from the ⋮ menu next to your Bitbucket sync, pasting the new token, and saving.

  6. Check your repositories for changes you don't recognise, especially if your files were shared widely or by public link. Atlassian's account and Bitbucket audit logs can help.

If you use GitHub, GitLab, Azure DevOps or any other sync provider, or still use a Bitbucket app password, you don't need to do anything.

Timeline, credit and contact

The issue was reported privately on 16 November 2026 and fixed on 17 November 2026.

DateEvent
17 November 2026Version 2.13.4 released; in-plugin notice to affected users
17 November 2026Report confirmed and acknowledged
16 November 2026Vulnerability reported to Tokens Studio
9 September 2025Issue introduced in version 2.8.0, with the move to Bitbucket API tokens

We thank kta1kri (github.com/kta1kri) for finding and reporting this issue responsibly, and for coordinating disclosure with us.

To report a security issue in any Tokens Studio product, contact security@tokens.studio. For questions about this advisory, use the same address.

Build better systems—faster

Join the growing community of designers and engineers using Tokens Studio to drive consistency and scale.

© 2026 Tokens Studio. All rights reserved.

Build better systems—faster

Join the growing community of designers and engineers using Tokens Studio to drive consistency and scale.

Product

Resources

Company

Pricing

Get In Touch

© 2026 Tokens Studio. All rights reserved.