Return to Threats

VS Code Vulnerability Allows One-Click GitHub Token Theft

securityweek.com 2026-06-04 AI supply chain High

What Happened

A researcher has disclosed the full details of the vulnerability and released a PoC without notifying Microsoft in advance. The post VS Code Vulnerability Allows One-Click GitHub Token Theft appeared first on SecurityWeek .

Why It Matters

SecurityWeek reports a vulnerability in VS Code / github.dev where a researcher publicly disclosed full details and a proof-of-concept that enables one-click theft of GitHub OAuth tokens, without prior disclosure to Microsoft.[2][3][8] These tokens can grant read/write access to private repositories and broader developer resources, enabling code tampering, data exfiltration, and downstream supply-chain compromise for any systems (including AI systems) that depend on that code.[2][3] From a CyberSE.AI perspective, this is an AI supply chain risk because compromised GitHub tokens can be used to alter AI models, prompts, agents, or pipelines stored in affected repos, inject malicious logic, or exfiltrate proprietary AI assets without directly attacking the AI system itself. Organizations should harden developer environments, enforce least-privilege and time-bound GitHub tokens, and include VS Code / github.dev and extension usage in AI-focused SBOM, supply-chain reviews, and continuous security monitoring.

Healthcare Fintech SaaS SMB AI startups

CyberSE Analysis

This signal maps to AI supply chain. Organizations using AI agents, LLM APIs, SaaS integrations, or sensitive data workflows should review whether this class of issue could create unauthorized tool execution, data leakage, weak approval gates, or unmanaged supply-chain exposure.

Recommended Actions

  • Restrict AI agent tool permissions and production write paths.
  • Review sensitive data access across prompts, logs, embeddings, memory, and SaaS integrations.
  • Add human approval workflows for high-impact or state-changing actions.
  • Run prompt injection and indirect prompt injection tests against affected workflows.
  • Document the owner, control gap, and remediation deadline for this risk class.

Source

https://www.securityweek.com/vs-code-vulnerability-allows-one-click-github-token-theft/

Talk to AI CISO