# VS Code and Open VSX extensions leaked 550+ secrets, including tokens that could publish updates

Source: https://botpassword.com/incidents/2025-10-vscode-extension-leaked-tokens
Disclosed: 2025-10-15 · Type: Credential leak · Status: Resolved · Updated: 2026-10-25

In October 2025 Wiz Research reported more than 550 valid secrets packaged inside over 500 published VS Code extensions, mostly in `.env` files shipped in the `.vsix`, including more than 100 Visual Studio Marketplace and more than 30 Open VSX publishing tokens that could push updates to about 150,000 installs. The Eclipse Foundation said some leaked Open VSX tokens were used in the GlassWorm campaign to publish credential-stealing extensions. Extension publishers should rotate every secret that was ever in a published package and scan before publishing.

## What was exposed

Secrets that extension publishers accidentally shipped inside public extension packages, which anyone can download and unzip. Wiz counted 67 secret types, including AI provider keys (OpenAI, Gemini, Anthropic, xAI, DeepSeek, Hugging Face, Perplexity), cloud and platform credentials (AWS, GitHub, Stripe, Auth0, Google Cloud) and database credentials (MongoDB, Postgres, Supabase). The most serious were **publisher access tokens**: Azure DevOps personal access tokens for the Visual Studio Marketplace and Open VSX access tokens, which let anyone publish a malicious update to every user of that extension. Wiz found them mostly in `.env` files, and increasingly in AI configuration files such as `mcp.json`, `config.json` and `.cursorrules`. The Eclipse Foundation says some leaked Open VSX tokens were used by GlassWorm to publish malicious extensions aimed at developer credentials.

## Who is affected

**Extension publishers:** you are affected if any version of an extension you published to the Visual Studio Marketplace or Open VSX included a `.env` file, an MCP or AI-tool config, or hard-coded keys. Download your own `.vsix` files, unzip them and scan them; old versions stay downloadable. **Extension users:** you are affected if you installed an extension that was updated with malicious code through a leaked token, particularly from Open VSX, the registry used by many VS Code forks, during October 2025. The Eclipse Foundation did not publish extension names, and says reported download numbers overstate the real number of affected users.

## What to do

1. Publishers: scan every published `.vsix` version for secrets, rotate anything found at its provider (AI, cloud, payment and database keys), and add `.env` and AI config files to `.vscodeignore`.
2. Publishers: replace Marketplace and Open VSX publishing tokens with short-lived ones, store them only in CI secrets, and revoke any token that was ever committed or packaged.
3. Users: keep an inventory of installed extensions, remove ones you do not use, and consider an allowlist for your organization.
4. Users of Open VSX-based editors: if you installed an extension that Open VSX later removed for malware, rotate GitHub, npm and cloud credentials and any API keys on that machine.

## Keys to rotate

- [GitHub](https://botpassword.com/keys/github)
- [AWS (IAM access keys)](https://botpassword.com/keys/aws)
- [OpenAI](https://botpassword.com/keys/openai)
- [Anthropic](https://botpassword.com/keys/anthropic)
- [Google Gemini API](https://botpassword.com/keys/google-gemini)
- [Hugging Face](https://botpassword.com/keys/hugging-face)
- [Perplexity](https://botpassword.com/keys/perplexity)
- [Stripe](https://botpassword.com/keys/stripe)
- [Auth0](https://botpassword.com/keys/auth0)
- [MongoDB Atlas](https://botpassword.com/keys/mongodb-atlas)
- [Supabase](https://botpassword.com/keys/supabase)

## Timeline

- 2025-03-30: Wiz reports the secret leakage pattern to the Microsoft Security Response Center. ([source](https://www.wiz.io/blog/supply-chain-risk-in-vscode-extension-marketplaces))
- 2025-04-25: MSRC finishes notifying affected third parties, according to Wiz. ([source](https://www.wiz.io/blog/supply-chain-risk-in-vscode-extension-marketplaces))
- 2025-10-15: Wiz publishes its findings. Microsoft has revoked every leaked Visual Studio Marketplace token and added pre-publish secret scanning that blocks extensions with verified secrets; Open VSX is adding an `ovsxp_` token prefix. ([source](https://www.wiz.io/blog/supply-chain-risk-in-vscode-extension-marketplaces))
- 2025-10-21: The Open VSX team considers the incident, including the GlassWorm extensions published with leaked tokens, contained and closed after removing the malicious extensions and revoking or rotating the tokens. ([source](https://blogs.eclipse.org/node/8583))
- 2025-10-27: The Eclipse Foundation publishes its Open VSX security update, saying Open VSX infrastructure was not compromised and that GlassWorm was not self-replicating but was designed to steal developer credentials. ([source](https://blogs.eclipse.org/node/8583))

## Indicators

- `.env`, `mcp.json`, `config.json` or `.cursorrules` files inside a published `.vsix` package.
- Open VSX access tokens, which are moving to the `ovsxp_` prefix.

## Sources

- https://www.wiz.io/blog/supply-chain-risk-in-vscode-extension-marketplaces
- https://blogs.eclipse.org/node/8583
