Skip to content
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

Explicitly reference newer versions of libraries with CVEs #42

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

killnine
Copy link
Contributor

Summary

I've explicitly referenced two nuget packages to prevent the implicit versions from being referenced:

  • Newtonsoft.Json - 13.0.3
  • Microsoft.Rest.ClientRuntime - 2.3.24

This is because the implicit versions (10.0.3 for Newtonsoft, 2.3.20.0 for ClientRuntime) have active CVEs that's triggering my build pipeline checks:

Other Notes

Both of these referenced libraries are due to the dependency on the now-deprecated Microsoft.Azure.Management.ServiceBus library. Rather than replacing it with its Azure.ResourceManager.ServiceBus alternative that's still under support, I am just doing this in hopes it wont create a bunch more downstream work.

If there's appetite, I could replace Management.ServiceBus instead but I am not familiar with the test environment of this package at all.

…ries to latest version that doesn't have an active CVE.
@CLAassistant
Copy link

CLAassistant commented Apr 17, 2024

CLA assistant check
All committers have signed the CLA.

@@ -5,6 +5,10 @@
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="5.2.0" />

<PackageReference Include="Foundatio" Version="10.7.1" Condition="'$(ReferenceFoundatioSource)' == '' OR '$(ReferenceFoundatioSource)' == 'false'" />

<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24" />
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="(2.3.24,)" />

Maybe to allow future versions but at least get up to this version?


<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24" />

<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="(13.0.3,)" />

Maybe to allow future versions but at least get up to this version?

@niemyjski niemyjski merged commit 7c4c176 into FoundatioFx:master Apr 18, 2024
1 of 2 checks passed
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