radar

ONE Sentinel

securitySecurity/THREATS/HIGH

One-Click GitHub Dev Attack Lets Attackers Steal Full GitHub OAuth Tokens

sourceThe Hacker News
calendar_todayJune 3, 2026
schedule1 min read
lightbulb

EXECUTIVE SUMMARY

One-Click Attack Exploits VS Code to Steal GitHub OAuth Tokens

Summary

A newly disclosed security vulnerability allows attackers to steal GitHub OAuth tokens through a one-click attack using Microsoft Visual Studio Code (VS Code). This exploit enables unauthorized access to both public and private GitHub repositories.

Key Points

  • The attack is executed via a link that, when clicked, can steal a GitHub token.
  • The stolen token grants the attacker read and write permissions to the victim's GitHub repositories.
  • This vulnerability leverages the GitHub.dev feature in GitHub.
  • Security researcher Ammar Askar was the first to disclose this vulnerability.

Analysis

The significance of this vulnerability lies in its simplicity and potential impact. By merely clicking a malicious link, a user's GitHub repositories could be compromised, leading to unauthorized access and potential data breaches. This poses a significant threat to developers and organizations relying on GitHub for code management and collaboration.

Conclusion

IT professionals should immediately review their security practices regarding OAuth tokens and consider implementing additional security measures such as multi-factor authentication and regular token audits to mitigate the risk of such attacks.