You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't update vulnerable packages - when the project restore is already failing #14988
error: Restore failed
Unhandled exception: Specified method is not supported.
Then I tried a bare dotnet package update giving the following error:
error: NU1904: Warning As Error: Package 'Marten' 8.24.0 has a known critical severity vulnerability, https://github.com/advisories/GHSA-vmw2-qwm8-x84c
Preview restore with updated packages was not successful. Force mode is not yet available.
This makes it seem like it is failing to to an update because of a vulnerable package, blocking updating from the vulnerable package. I was able to manually change the version in Directory.Packages.props and restore.
@zivkan commented on Thu, 09 Jul 2026 23:21:44 GMT
I asked copilot to try to repro the bug, and it was able to with the 10.0.301 SDK, and whatever 10.0.400-preview SDK I have installed.
changed the title [-]Can't update vulnerable packages[/-][+]Can't update vulnerable packages - when the project restore is already failing[/+]on Jul 13, 2026
Activity
nkolev92 commentedon Jul 9, 2026
@marcpopMSFT commented on Thu, 09 Jul 2026 21:05:08 GMT
@dotnet/nuget-team to take a look. It's sdk cli but nuget owned command.
nkolev92 commentedon Jul 9, 2026
@nkolev92 commented on Thu, 09 Jul 2026 21:32:54 GMT
We can probably just move this to the nuget/home repo.
@marcpopMSFT Any concerns with that, I can move it.
@rcmosher What's the SDK version you are using?
nkolev92 commentedon Jul 9, 2026
@zivkan commented on Thu, 09 Jul 2026 23:21:44 GMT
I asked copilot to try to repro the bug, and it was able to with the 10.0.301 SDK, and whatever 10.0.400-preview SDK I have installed.
dotnet-policy-service commentedon Jul 9, 2026
@@nkolev92 Issue is missing Type label, remember to add a Type label
nkolev92 commentedon Jul 9, 2026
Repro project csproj:
Key part is TreatWarningsAsErrors, without it, it does work.
nkolev92 commentedon Jul 9, 2026
There's no indication this is a regression, reproes with 10.0.300.
[-]Can't update vulnerable packages[/-][+]Can't update vulnerable packages - when the project restore is already failing[/+]dotnet packagecommands cannot diagnose or remediate vulnerable packages when NU190x warnings are treated as errors` #15009 as a duplicate of this issue