Skip to content
Zero-Day Vulnerability in VS Code Allows GitHub Token Theft via Malicious Links

Zero-Day Vulnerability in VS Code Allows GitHub Token Theft via Malicious Links

First seen 3 Jun 2026, 07:24 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •June 4, 2026 at 06:54 UTC
  • •A zero-day vulnerability in VS Code allows OAuth token theft from GitHub.
  • •Attackers can exploit this flaw by tricking users into clicking malicious links.
  • •No patch is currently available, and users are advised to clear site data for protection.

A newly disclosed zero-day vulnerability in Visual Studio Code (VS Code) enables attackers to steal GitHub OAuth tokens by tricking users into clicking a malicious link. The flaw exploits the webview message-passing system in VS Code, allowing malicious extensions to be installed that can extract tokens with full access to private repositories. Security researcher Ammar Askar publicly disclosed this vulnerability on June 2, 2026, after notifying GitHub just an hour prior. Microsoft has not yet issued a patch or assigned a CVE ID for this issue. Users are advised to clear cookies and site data for github.dev to mitigate the risk. Askar's decision for immediate public disclosure stems from past negative experiences with Microsoft's security response process. This vulnerability is part of a concerning trend of zero-days affecting Microsoft products.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Updated 143d ago How this analysis works

Timeline

2026-06-02
Vulnerability publicly disclosed
Security researcher Ammar Askar disclosed a zero-day vulnerability in VS Code that allows GitHub token theft via malicious links.
Bleepingcomputer
2026-06-02
Notification to GitHub
Askar notified GitHub about the vulnerability one hour before public disclosure to ensure awareness.
Bleepingcomputer
2026-06-03
User mitigation advice issued
Users are advised to clear cookies and local site data for github.dev to protect against exploitation.
Bleepingcomputer

More articles in this cluster (14)

Following this threat?

Track Microsoft in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed