The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Monday, 23 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

One Pull Request Could Have Hijacked WinGet Supply Chain

By The Daily Byte ·22 Nov 2026 ·4 min read
A laptop showing a padlock security icon on its screen, representative of Windows security

A single pull request could have handed attackers the keys to Microsoft's software supply chain. Researchers at Cycode found a critical flaw in the internal tooling Microsoft moderators use to review submissions to WinGet, the Windows Package Manager, that would have let an attacker steal a moderator's GitHub access token without any phishing, malware or click from the moderator. Microsoft has since fixed the flaw, and Cycode says it has seen no evidence it was ever exploited.

WinGet is the free, open-source command-line tool for finding, installing, upgrading and removing apps on Windows. It runs on more than 1.4 billion active devices running Windows 10 and Windows 11, according to Cycode, and its catalogue is a public GitHub repository, microsoft/winget-pkgs, where a small official group of Microsoft moderators reviews a constant stream of community pull requests. That trust model is what made the flaw so dangerous: the moderators are the gatekeepers, and compromising one of them could reach every package they oversee.

How one pull request could steal a token

The hole sat not in WinGet itself but in the moderators' own triage tool, a PowerShell script called ManualValidationPipeline.ps1. Whenever the tool made a web request it attached the moderator's GitHub Personal Access Token, with no check on which server the request was going to. One of its automated routines read the installer address listed in a submitted package manifest and called it.

The attack chain, as Cycode described it, needed only that address. An attacker opens a pull request against the catalogue and points the manifest's InstallerUrl at a server they control. Microsoft's automated Azure DevOps validation pipeline tries to fetch the address; the attacker's server deliberately returns an error, so the pipeline stamps the pull request with a URL-Validation-Error label. That label makes the moderator's triage tool, running in its designed mode as a continuous background loop, run a CheckInstaller routine that sends a HEAD request to the same address through an authenticated helper that staples the token to the request. The attacker then simply reads their own server logs and takes the token from them. The tool even left a comment on the pull request recording the response it received, which Cycode said would confirm to the attacker that the token had been delivered.

The stolen credential was a Classic Personal Access Token carrying the workflow scope. Cycode described it as a full identity credential: whatever the moderator could do on GitHub, the token could do too.

What the token could have unlocked

With it, Cycode said, an attacker could have pushed malicious manifests directly into the catalogue, approved their own pull requests and published backdoored installers across 14,000 exposed packages, all carrying the trusted Microsoft badge. The same token could also have reached other Microsoft repositories the moderator had access to. The only precondition was that at least one moderator had the triage tracker running in its intended background-loop mode, which is how the tool is designed to work.

The flaw was found by Cycode's security research team, led by Moriel Harush, while the company was developing its AI offensive security capabilities. Harush wrote that package registries have become the highest-profile target in the software supply chain, adding: "Compromise a single maintainer, and you reach everyone who trusts them. Compromise the gatekeepers, and you reach the entire ecosystem." He compared the bug to a courier stapling a house key to every parcel that carries the owner's name, because most of them are destined for the owner's own address.

The fix, and the warning that remains

Microsoft has closed the gap in pull request #456300, which limits the token to requests bound for approved GitHub addresses, including api.github.com, github.com and raw.githubusercontent.com. Notably, a safer pattern already existed in the same directory: the tool's C# implementation attached credentials safely and did not share the flaw.

Cycode reported no evidence the flaw was exploited in the wild, and Microsoft told Expert Insights it had nothing further to share. But Harush warned the underlying credential model is "fundamentally flawed" and called reliance on Classic Personal Access Tokens "a severe liability". His recommendations: bind credentials to destinations rather than to functions, audit every internal tool that handles maintainer credentials, and apply authorisation headers conditionally, based on the target host, rather than stapling them on unconditionally. Frank Dickson of Dickson Research called the incident a near miss, "but a very serious one".