VS Code Webview Flaw Enabled One-Click Theft of GitHub OAuth Tokens
Security researcher Ammar Askar disclosed a zero-day in Visual Studio Code’s webview message-handling that allowed attackers to steal GitHub OAuth tokens from github.dev with a single malicious link. The attack abused forwarded keyboard events and simulated keypresses to cross the webview security boundary, silently install a malicious extension, and extract the token that GitHub passes to the browser-based editor. Multiple reports said the token was broadly scoped rather than limited to the repository being viewed, giving access to all repositories the victim could reach, including private repositories with read/write permissions.
The exploit chain was also reported to affect desktop VS Code in some scenarios involving attacker-controlled repositories and malicious workspace content, though Microsoft said the issue did not affect VS Code Desktop and later indicated the problem had been fixed in its services. Public reporting tied the disclosure to a dispute over Microsoft’s vulnerability-handling process, with Askar saying he notified GitHub shortly before release and published proof-of-concept code without coordinated disclosure. Recommended precautions included avoiding untrusted github.dev links, clearing saved site data for github.dev, and reviewing installed extensions for suspicious additions.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
5 events from the most recent confirmed update back to the earliest known activity.
Microsoft says the issue was already fixed in its services
A later report says Microsoft told BleepingComputer that the vulnerability had already been fixed in its services and that customers did not need to take action. This marks the first explicit claim in the references that remediation had already been completed.
Microsoft says it is working on a fix
Following disclosure, Microsoft acknowledged the issue and said it was working on a fix. This acknowledgment was reported after GitHub had been notified and the exploit details were public.
Microsoft opens VS Code issue #319593 on webview keyboard shortcut abuse
A GitHub issue was published in the microsoft/vscode repository documenting that webviews can trigger arbitrary keyboard shortcuts in the main workbench via forwarded keydown events. The issue describes the security implications of synthetic keyboard events crossing the webview boundary.
GitHub is notified about the vulnerability shortly before disclosure
Reports say Askar notified GitHub about the issue roughly one hour before making the vulnerability public. One source explicitly anchors the notification to June 2, 2026.
Ammar Askar publicly discloses VS Code/github.dev token-stealing zero-day
Security researcher Ammar Askar publicly disclosed a one-click vulnerability affecting github.dev and VS Code webviews that can lead to GitHub OAuth token theft, and published technical details and proof-of-concept exploit code. Multiple reports state this disclosure occurred on June 2, 2026.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
11 references tracked. Mallory keeps watching after this page renders.
В VS Code нашли 0-day-уязвимость, позволявшую похищать токены GitHub - Хакер
xakep.ru
Open sourceResearcher Drops a New VS Code Zero-Day After Losing Trust in Microsoft's Disclosure Process
securityaffairs.com
Open sourceResearcher publishes GitHub token-stealing exploit, blames Microsoft’s disclosure process | The Record from Recorded Future News
therecord.media
Open sourceOne-Click GitHub Dev Attack Lets Attackers Steal Full GitHub OAuth Tokens
thehackernews.com
Open sourceHole in GitHub’s browser-based VSCode editor could lead to stolen token | CSO Online
csoonline.com
Open sourceSecurity: Webviews can trigger arbitrary keyboard shortcuts in the main workbench · Issue #319593 · microsoft/vscode
github.com
Open source1-Click GitHub Token Stealing via a VSCode Bug : r/netsec
reddit.com
Open source1-Click GitHub Token Stealing via a VSCode Bug - Ammar's Blog
blog.ammaraskar.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


