Skip to content

Fix vulnerable dependencies in newtonsoft.json#1489

Merged
WanjohiSammy merged 4 commits intomainfrom
fix/upgrade-dependencies-vulnerability
Jun 18, 2025
Merged

Fix vulnerable dependencies in newtonsoft.json#1489
WanjohiSammy merged 4 commits intomainfrom
fix/upgrade-dependencies-vulnerability

Conversation

@WanjohiSammy
Copy link
Member

Issues

This pull request fixes #xxx.

Description

Newtonsoft.Json prior to version 13.0.1 is vulnerable to Insecure Defaults due to improper handling of expressions with high nesting level that lead to StackOverFlow exception or high CPU and RAM usage.

This PR handles this security vulnerabilities by updating affected dependencies:

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 OData-AspNetCoreOData-main-rolling-1ES

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

Copy link

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 fixes a known vulnerability by updating key package dependencies used by Newtonsoft.Json.

  • Upgrade Microsoft.AspNetCore.Mvc.NewtonsoftJson from version 5.0.0 to 8.0.17
  • Upgrade Microsoft.CodeAnalysis.FxCopAnalyzers from version 2.9.8 to 3.3.2
Comments suppressed due to low confidence (2)

src/Microsoft.AspNetCore.OData.NewtonsoftJson/Microsoft.AspNetCore.OData.NewtonsoftJson.csproj:19

  • The upgrade to version 8.0.17 may introduce breaking changes in API behavior compared to version 5.0.0. It is recommended to review the migration guide and update related code if necessary.
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.17" />

src/Microsoft.AspNetCore.OData.NewtonsoftJson/Microsoft.AspNetCore.OData.NewtonsoftJson.csproj:20

  • The new version of FxCopAnalyzers may enforce additional or modified rules. Please verify that the codebase complies with any new analyzer recommendations.
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2">

KenitoInc
KenitoInc previously approved these changes Jun 16, 2025
gathogojr
gathogojr previously approved these changes Jun 16, 2025
xuzhg
xuzhg previously approved these changes Jun 16, 2025
@WanjohiSammy
Copy link
Member Author

/AzurePipeline run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@WanjohiSammy
Copy link
Member Author

/AzurePipeline run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@WanjohiSammy
Copy link
Member Author

/AzurePipeline run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@WanjohiSammy
Copy link
Member Author

/AzurePipeline run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@WanjohiSammy WanjohiSammy dismissed stale reviews from xuzhg, gathogojr, and KenitoInc via 78ca070 June 18, 2025 10:56
@WanjohiSammy
Copy link
Member Author

/AzurePipelines run OData-AspNetCoreOData-main-rolling-1ES

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@WanjohiSammy WanjohiSammy requested review from gathogojr and xuzhg June 18, 2025 11:00
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.

4 participants