Skip to content

Remove redundant Newtonsoft.JSON dependency across backends#1026

Merged
davidmrdavid merged 3 commits intomainfrom
dajusto/patch-advisories-follow-up
Mar 22, 2024
Merged

Remove redundant Newtonsoft.JSON dependency across backends#1026
davidmrdavid merged 3 commits intomainfrom
dajusto/patch-advisories-follow-up

Conversation

@davidmrdavid
Copy link
Collaborator

@davidmrdavid davidmrdavid commented Jan 9, 2024

Follow up to: #1023

As of recently, building the DTFx project failed with errors of the following kind:

"Warning as Error: Package has a known high severity vulnerability" and it points to this advisory: "

The warnings were for:

Newtonsoft.Json < 13.0.1, which linked to: GHSA-5crp-9r3c-p9vr

This issue was addressed (by supressing the warning) in DTFx.Core and DTFx.AzureStorage here: #1023. Suppressing the warning was chosen because it prevents breaking changes and the advisory is only triggered when customers have immensely nested objects, something they have direct control over.

In this PR, we address it across other backends by removing Newtonsoft.Json as a direct dependency of these backends. Moving forward, we'd obtain this dependency transitively from DTFx.Core, which reduces our dependency management burden.

@davidmrdavid davidmrdavid changed the title [WIP] Fix advisories in Azure ServiceFabric [WIP] Fix advisories across backends Jan 9, 2024
@davidmrdavid davidmrdavid changed the title [WIP] Fix advisories across backends Remove redundant Newtonsoft.JSON dependency across backends Jan 9, 2024
@davidmrdavid
Copy link
Collaborator Author

@shankarsama: is this change ok with you for DTFx.AzureServiceFabric?

@davidmrdavid
Copy link
Collaborator Author

@shankarsama and I sync'ed offline, got approval to merge.

@davidmrdavid davidmrdavid merged commit 04583ad into main Mar 22, 2024
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.

3 participants