VS Code Zero-Day Lets Hackers Steal GitHub Tokens in One Click

VS Code Zero-Day Lets Hackers Steal GitHub Tokens in One Click

BleepingComputer
BleepingComputerJun 3, 2026

Companies Mentioned

Why It Matters

The vulnerability gives attackers unrestricted access to developers’ private code, posing a severe supply‑chain risk for software projects. It also highlights ongoing tensions between independent security researchers and Microsoft’s disclosure process.

Key Takeaways

  • VS Code zero‑day enables one‑click theft of GitHub OAuth tokens
  • Malicious JavaScript in VS Code webview installs rogue extensions
  • GitHub token grants attacker full access to all private repositories
  • No patch or CVE yet; clear github.dev cookies as workaround
  • Researcher criticized Microsoft’s security response, opting for immediate public disclosure

Pulse Analysis

The newly revealed VS Code zero‑day exploits the editor’s webview messaging system to run arbitrary JavaScript, which then silently installs a malicious extension. Once the extension is active, it intercepts the OAuth token that GitHub passes to the browser‑based github.dev environment, allowing the attacker to call the GitHub API and list every private repository the victim can access. Because the token is not scoped to a single repository, the breach can expose entire codebases across an organization with a single click.

This incident underscores a growing security challenge for developer‑focused tools. As integrated cloud services become standard in IDEs, the attack surface expands beyond traditional desktop software. Microsoft’s delayed patching and the absence of a CVE identifier have drawn criticism from the security community, echoing earlier disputes with the “Nightmare Eclipse” researcher who exposed multiple Microsoft zero‑days. The friction highlights the need for clearer, faster coordination between product teams and independent researchers to mitigate risks before public disclosure.

For enterprises, the immediate mitigation is simple: clear cookies and site data for github.dev to force a sign‑in prompt that warns users about extension installation. Longer‑term strategies include enforcing strict extension policies, monitoring OAuth token usage, and employing zero‑trust principles for developer environments. As the ecosystem evolves, organizations should prioritize rapid patch adoption and maintain open channels with security researchers to stay ahead of similar supply‑chain threats.

VS Code zero-day lets hackers steal GitHub tokens in one click

Comments

Want to join the conversation?

Loading comments...