Skip to content

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

WanjohiSammy
Copy link
Member

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)

  • Test cases added
  • Build and test with one-click build and test script passed

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.

@WanjohiSammy
Copy link
Member Author

/AzurePipeline run

Copy link

No pipelines are associated with this pull request.

@WanjohiSammy WanjohiSammy requested a review from Copilot June 18, 2025 16:02
Copy link

@Copilot Copilot AI left a 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" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant