As per NuGet.org, the NuGet.exe version used currently has at least one vulnerability https://www.nuget.org/packages/NuGet.CommandLine/5.2.1. Hence proposing to use latest NuGet.exe version always. If the latest version has a regression, we can always pin to a particular version by passing v{versionnumber} as a parameter to the powershell script.
As per NuGet.org, the NuGet.exe version used currently has at least one vulnerability https://www.nuget.org/packages/NuGet.CommandLine/5.2.1. Hence proposing to use latest NuGet.exe version always. If the latest version has a regression, we can always pin to a particular version by passing
v{versionnumber}
as a parameter to the powershell script.