Skip to content

Package Manager UI should recommend smallest safe upgrade for vulnerable packages #15138

Open

Description

@Dmitry-sm-dn

NuGet Product(s) Involved

Visual Studio Package Management UI

The Elevator Pitch

Summary

When NuGet detects a vulnerable package, developers are informed about the vulnerability but still need to manually determine:

which version fixes it,
whether a major upgrade is required,
whether a compatible non-vulnerable version exists,
how to handle transitive dependencies.

This is especially difficult in large solutions containing hundreds of transitive packages.

Problem

Example:

Plain Text
Package: Example.Library
 
Current Version: 10.0.1
Vulnerable: Yes

Developers then need to investigate:

Plain Text
Which version contains the fix?
Can I stay on the current major version?
Do I need to upgrade to the latest release?
Proposed Solution

Introduce a remediation mode:

Plain Text
☑ Recommend Minimal Secure Version
 

NuGet would determine:

Plain Text
Current Version: 10.0.1
 
Recommended Secure Version: 10.0.3
 
Reason:
Fixes CVE-XXXX-XXXX

instead of only pointing developers toward the latest available version.

Transitive Dependency Support

Add an optional feature:

Plain Text
☑ Automatically resolve vulnerable transitive dependencies
 

NuGet could:

Detect vulnerable dependencies.
Find the lowest compatible non-vulnerable version.
Verify dependency graph compatibility.
Suggest or apply the remediation.
Example

Current:

Plain Text
Project
└─ PackageA
└─ PackageB 1.0.0 (vulnerable)

NuGet identifies:

Plain Text
PackageB 1.0.3

as the minimal secure version and recommends:

Plain Text
1.0.0 -> 1.0.3

instead of:

Plain Text
1.0.0 -> 2.0.0
 

when a major upgrade is unnecessary.

Benefits
Faster vulnerability remediation.
Reduced maintenance effort.
Lower upgrade risk.
Better support for enterprise and LTS environments.
Improved handling of transitive dependency vulnerabilities.
Security-focused recommendations rather than version-focused recommendations.
Expected Behavior

Developers should be able to choose between:

Plain Text
Latest Version

and

Plain Text
Minimal Secure Version

depending on their project's maintenance strategy.

Additional Context and Details

No response

Activity

  1. zivkan commented on Nov 12, 2026

    @zivkan
    Member

    I find the above extremely difficult to read. I asked copilot to summarize, and it tells me:

    [NuGet/Home#15138](#15138) asks NuGet to recommend the smallest safe upgrade for a vulnerable package, rather than always suggesting the latest version.

    For example, suggest 1.0.3 instead of 2.0.0 if it fixes the vulnerability. The request covers both direct and transitive dependencies, with an option to suggest or apply fixes for transitive dependencies. Users could choose between the latest version and the minimum secure version.

    @Dmitry-sm-dn if this is not accurate, please try rephrasing your request in another way

    The top line of the issue says it's for PM UI. dotnet package update --vulnerable, and I think the MCP server's vulnerable package fix, has this behavior. So I think it makes sense that PM UI should as well when the "show only vulnerable" packages checkbox is ticked.

  2. added
    Type:DCR
    Functionality:VisualStudioUI
    and removed on Nov 12, 2026
  3. changed the title [-]Security Remediation Mode for Vulnerable Direct and Transitive Dependencies[/-] [+]Package Manager UI should recommend smallest safe upgrade for vulnerable packages[/+] on Nov 12, 2026
  4. added
    Priority:2
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:NuGetAuditFunctionality:VisualStudioUIPriority:2Type:DCR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions