microsoftgraph / microsoftgraph/msgraph-sdk-dotnet-core
Microsoft.Graph.Core 3.2.5 depends on Microsoft.Kiota.Abstractions 1.21.1 which has a known high severity vulnerability
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 164
- Forks
- 65
- Avg merge
- 38m
- Merged PRs (30d)
- 1
Description
Describe the bug
Microsoft.Graph.Core 3.2.5 has a transitive/direct dependency on Microsoft.Kiota.Abstractions 1.21.1, which contains a known high-severity vulnerability. This causes build failures in projects that treat warnings as errors (<TreatWarningsAsErrors>true</TreatWarningsAsErrors>), and is a security concern for all consumers of the SDK.
| Field | Details |
|---|---|
| Package | Microsoft.Kiota.Abstractions |
| Vulnerable Version | 1.21.1 |
| Advisory | GHSA-7j59-v9qr-6fq9 |
| Severity | 🔴 High |
| Latest Safe Version | 2.0.0 (published May 7, 2026) |
Expected behavior
Microsoft.Graph.Core should depend on a version of Microsoft.Kiota.Abstractions that has no known vulnerabilities. The latest safe version (2.0.0) is already available on NuGet and should be adopted.
How to reproduce
- Create a .NET project with
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>in the Application.csproj. - Add a reference to Microsoft.Graph.Core 3.2.5.
- Run dotnet restore or dotnet build.
- Observe the build error:
Warning As Error: Package 'Microsoft.Kiota.Abstractions' 1.21.1 has a known high severity vulnerability,
https://github.com/advisories/GHSA-7j59-v9qr-6fq9
SDK Version
3.2.5
Latest version known to work for scenario above?
No response
Known Workarounds
- Simple Fix -
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
OR
- Enable Transitive Package Pinning: Add
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>to allow overriding transitive dependency versions in Central Package Management. - Fix the Kiota Vulnerability: Add version overrides for all Microsoft.Kiota.* packages to version 2.0.0 to fix the high-severity vulnerability (GHSA-7j59-v9qr-6fq9):
• Microsoft.Kiota.Abstractions
• Microsoft.Kiota.Authentication.Azure
• Microsoft.Kiota.Http.HttpClientLibrary
• Microsoft.Kiota.Serialization.Form
• Microsoft.Kiota.Serialization.Json
• Microsoft.Kiota.Serialization.Multipart
• Microsoft.Kiota.Serialization.Text
Debug output
Warning As Error: Package 'Microsoft.Kiota.Abstractions' 1.21.1 has a known high severity vulnerability, https://github.com/advisories/GHSA-7j59-v9qr-6fq9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the dependency declarations for Microsoft.Graph.Core and the listed Microsoft.Kiota packages, then inspect how their versions are managed. Restore and build a project with TreatWarningsAsErrors enabled; done means the dependencies use safe versions and the GHSA-7j59-v9qr-6fq9 warning no longer appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100