Skip to content

Show vulnerabilities consistently in PM UI versions and package details - #7682

Merged
donnie-msft merged 3 commits into
devfrom
dev-donnie-msft-versionsDropdownAuditSource
Sep 11, 2026
Merged

donnie-msft merged 3 commits into
devfrom
dev-donnie-msft-versionsDropdownAuditSource

Conversation

@donnie-msft

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#15071
(Developer Community ticket: https://developercommunity.visualstudio.com/t/NuGet-Package-Manager-version-dropdown-o/11104121)

Fixes: NuGet/Home#13051
Fixes: NuGet/Home#14253
Fixes: NuGet/Home#14724
Fixes: NuGet/Home#14004
Progress: NuGet/Home#14138

Description

Makes vulnerability information consistent across the PM UI version dropdown, package details, and Installed-tab warnings.

When audit sources are configured, they are now authoritative. Otherwise, PM UI uses vulnerability data from package sources

Audit Sources reflected in Version dropdown

Here, the audit source was previously ignored in the Version dropdown on the Left (before this PR).
After this PR (right side), we can see the version 3.5.3 (Vulnerable) is properly indicated.
image

Local source versions

This avoids losing vulnerability indicators when local and remote package metadata are merged.

In this example, the left (Before this PR) is missing a vulnerability indicator for 12.0.1 because a local package source has this package.
With this PR (right side) shows it is now reflected properly:
image

Refresh and Cache/Cancellation fix

  • The shared vulnerability database load now uses the Visual Studio shutdown token for its lifetime.
  • Refresh and package selection tokens cancel only the individual caller’s wait, preventing stale UI updates without canceling the cached operation needed by subsequent requests
  • Adds a test that cancels the first request, and proves that the second request gets vulnerability data as expected.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

jebriede
jebriede previously approved these changes Sep 4, 2026
@donnie-msft
donnie-msft merged commit 3724c49 into dev Sep 11, 2026
17 of 18 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-versionsDropdownAuditSource branch September 11, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment