Skip to content

Add-Migration and Update-Database fail with warning NU1902 #38677

Description

@IanMacro-GCCF

Bug description

The NuGet package AngleSharp has had a vulnerability tagged, which has made it impossible to use the Package Manager Console commands, because they all fail even though this is a warning, and as they don't have a no-build option, you can't skip that step.

Your code

PM> Update-Database
Build started...
Build succeeded.
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: <project-file> : warning NU1902: Package 'AngleSharp' 1.4.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-pgww-w46g-26qg [<project-file>]

Stack traces


Verbose output

PM> Update-Database --verbose
Build started...
Build succeeded.
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: <project-file> : warning NU1902: Package 'AngleSharp' 1.4.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-pgww-w46g-26qg [<project-file>]

EF Core version

10.0.9

Database provider

Microsoft.EntityFrameworkCore.SqlServer

Target framework

.NET 10.0

Operating system

Windows 11

IDE

Visual Studio 2026 18.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions