CleanArchitecture
CleanArchitecture copied to clipboard
Azure.Identity 1.10.4 moderate severity vulnerability
Describtion When installing the new version an Azure.Identity 1.10.4 moderate severity vulnerability is preventing you from running it. When trying to update that library to the latest, the application throws an NSwag error.
To Reproduce Steps to reproduce the behaviour:
- dotnet new install Clean.Architecture.Solution.Template::8.0.5
- dotnet new ca-sln --client-framework Angular --output test (or React one)
- cd test/src/Web -> dotnet run
- see error
if you disable warnings as errors you get another error, see attached log.txt
-- Alternatively --
- dotnet new install Clean.Architecture.Solution.Template::8.0.5
- dotnet new ca-sln --client-framework Angular --output test (or React one)
- update the Azure.Identity 1.10.4 to the latest
- try to run again
- see error
Expected behaviour The code to either support the latest version with no vulnerability or clarification on if the warning as error should be bypassed despite the vulnerability
Change version of Azure.Identity in Directory.Packages.props
file from 1.10.4 to 1.11.0 solve this problem
More information in GitHub Advisory Database
Change version of Azure.Identity in
Directory.Packages.props
file from 1.10.4 to 1.11.0 solve this problem More information in GitHub Advisory Database
That did not work and I still get the same error as seen in the log file I uploaded
The answer @betty2310 provided worked perfectly, thanks!
In VS 2022 nuget manager, this showed the issue/error/vulnerability, I was able to update the package to the latest 1.11.3 and it works fine for me.
Tip: You can click on "Show only vulnerable" and this package should show.
Trick is to update the Azure.Identity package to the latest version