Executive brief
Microsoft.Build.Tasks.Git and Microsoft.SourceLink.AzureRepos.Git fail to properly remove sensitive information before storing or transferring data. An attacker with network access could exploit this flaw to disclose confidential information such as credentials, tokens, or other secrets embedded in build metadata or source link information. This affects developers using vulnerable versions of the .NET SDK and could compromise authentication credentials or internal system details.
Technical details
The vulnerability exists in Microsoft.Build.Tasks.Git and Microsoft.SourceLink.AzureRepos.Git NuGet packages, which are used during .NET project builds to embed Git and Azure Repos metadata. These components fail to sanitize sensitive information (such as authentication credentials, personal access tokens, or connection strings) before storing or transferring build metadata. The root cause is classified as CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer. An attacker with network visibility can intercept or access this unredacted sensitive data during the build process or when source link information is referenced. Exploitation requires high attack complexity (likely involving specific build conditions or network positioning), no authentication, and no user interaction. Patches are available for 10.0.111 and 10.0.303 NuGet versions; however, versions 8.0.0 and the 10.0.2xx branch require SDK-level updates (.NET 8.0.130/424, 9.0.120/317, or 10.0.111/303). Self-contained applications must be recompiled and redeployed to receive the fix.
Affected products
- Microsoft Microsoft.Build.Tasks.Git 8.0.0, 10.0.102–10.0.110, 10.0.200–10.0.204, 10.0.300–10.0.301
- Microsoft Microsoft.SourceLink.AzureRepos.Git 8.0.0, 10.0.102–10.0.110, 10.0.200–10.0.204, 10.0.300–10.0.301
- Microsoft .NET SDK 8.x, 9.x, 10.x
Timeline
- 2026-08-11: disclosed: Security advisory published by Microsoft
- 2026-09-08: advisory: Advisory updated and published to GitHub Advisory Database