Cycode researchers uncover a zero-click vulnerability that could have turned a routine software validation process into an entry point for supply chain attacks.
A newly disclosed vulnerability in Microsoft’s Windows Package Manager (WinGet) has exposed how automated development workflows can create serious security risks when privileged credentials and untrusted inputs intersect.
Researchers at Cycode identified a critical, CVSS 10.0 zero-click vulnerability that could have allowed an attacker to steal a Microsoft moderator’s GitHub authentication token simply by submitting a specially crafted pull request.
The flaw, which Microsoft has now patched, was discovered during the development of Cycode’s AI offensive security capabilities. It demonstrates how seemingly routine automation can be exploited to gain access to trusted software repositories without compromising an application directly or convincing an employee to take action.
The Security Risk Hidden in Routine Automation
WinGet is Microsoft’s open-source package manager, used to install and manage applications across Windows environments. Its public GitHub repository accepts community contributions, which Microsoft moderators review and approve.
To handle the volume of submissions, moderators rely on automated validation tools.
According to Cycode’s research, one such tool contained a critical authentication weakness. A PowerShell script responsible for checking installer URLs automatically included the moderator’s GitHub Personal Access Token in HTTP requests, regardless of the destination.
This meant an attacker could submit a package manifest containing a URL pointing to a server under their control. When the automated validation process encountered the URL, the moderator’s workstation could send the privileged authentication token directly to the attacker.
No phishing email, malware infection or manual approval was required to trigger the credential leak.
The potential consequences were substantial. A compromised moderator token could have allowed attackers to modify package manifests, approve malicious submissions and distribute compromised software through a repository trusted by Windows users.
Because the affected credentials also carried broader GitHub permissions, attackers could potentially access other repositories available to the moderator, manipulate CI/CD workflows and expose sensitive information.
Why Credential Permissions Matter
One of the most important findings was that the vulnerable workflow used classic GitHub Personal Access Tokens rather than credentials restricted to a specific repository.
This significantly increased the potential impact of credential theft.
A token intended to support package validation could also grant access to unrelated repositories and development workflows, depending on the permissions of its owner.
For enterprise security teams, the issue demonstrates why least-privilege access must extend beyond employees and service accounts to include the credentials used by automated development tools.
Organizations should ensure that authentication tokens are restricted to approved destinations, permissions are limited to the minimum necessary and externally supplied URLs are treated as untrusted input.
These controls become especially important as businesses expand their use of automated development pipelines and AI agents capable of interacting with sensitive systems.
AI-Assisted Security Research Finds Connected Weaknesses
Cycode discovered the vulnerability while developing AI offensive security capabilities intended to identify and validate exploitable attack paths.
The WinGet issue involved several individual components that appeared legitimate in isolation: a community pull request, an automated validation label, a background moderation process and an HTTP helper that attached authentication credentials.
The vulnerability emerged from how those components interacted.
This type of multi-stage weakness presents a challenge for traditional security approaches focused on identifying isolated vulnerabilities rather than examining how systems and permissions connect.
AI-assisted offensive security research offers another way to evaluate these relationships, helping researchers investigate whether apparently minor weaknesses can be combined into more serious attacks.
The same capabilities, however, are increasingly available to malicious actors, potentially accelerating the discovery and exploitation of complex software vulnerabilities.
Securing the Next Generation of Development Workflows
Microsoft remediated the WinGet vulnerability by restricting the destinations to which the affected script could send authentication tokens.
The fix ensures that credentials are only attached to requests directed at approved GitHub endpoints.
The incident provides several lessons for organizations managing software development and distribution environments. Security teams need visibility into how automation uses privileged credentials, which external inputs can influence internal processes and whether a compromised token could provide access beyond its intended purpose.
It also demonstrates the value of testing complete attack paths rather than evaluating individual tools or code components in isolation.
As development becomes more automated, organizations will need to apply the same scrutiny to the workflows connecting their systems as they do to the software those systems produce.
For additional technical details, read Cycode’s full analysis of the WinGet zero-click supply chain vulnerability.
Join our LinkedIn group Information Security Community!
