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.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
5 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
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.
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.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
11 references tracked. Mallory keeps watching after this page renders.
xakep.ru
Open sourcesecurityaffairs.com
Open sourcetherecord.media
Open sourcethehackernews.com
Open sourcecsoonline.com
Open sourcegithub.com
Open sourceblog.ammaraskar.com
Open sourcereddit.com
Open sourceMap 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.