-
Notifications
You must be signed in to change notification settings - Fork 474
Fix security vulnerabilities in Newtonsoft.Json and System.Data.SqlClient #2876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
/AzurePipeline run |
No pipelines are associated with this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates key dependencies to address known security vulnerabilities in JSON handling and SQL connectivity.
- Adds
System.Data.SqlClient
v4.9.0 to the end-to-end test project - Adds
Newtonsoft.Json
v13.0.1 to the main OData project
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNetCore3x/Microsoft.Test.E2E.AspNetCore3x.OData.csproj | Added System.Data.SqlClient v4.9.0 for SQL tests |
src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.csproj | Added Newtonsoft.Json v13.0.1 for JSON serialization |
Comments suppressed due to low confidence (3)
test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNetCore3x/Microsoft.Test.E2E.AspNetCore3x.OData.csproj:33
- No new tests verify the integrated SQL client behavior against the patched version; consider adding or updating tests to cover the resolved CVE scenarios.
<PackageReference Include="System.Data.SqlClient" Version="4.9.0" />
test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNetCore3x/Microsoft.Test.E2E.AspNetCore3x.OData.csproj:33
- [nitpick] Consider adding PrivateAssets="All" to this test-only PackageReference so that transitive dependencies are not exposed to consuming projects.
<PackageReference Include="System.Data.SqlClient" Version="4.9.0" />
src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.csproj:46
- [nitpick] If this package is only used internally, consider adding PrivateAssets or ExcludeAssets attributes to avoid unintended exposure of the JSON library to downstream consumers.
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
Issues
This pull request fixes #xxx.
Description
This PR handles multiple known security vulnerabilities by updating or patching affected dependencies. The following CVEs are resolved:
Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.