Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the fixed version info in the nuget audit warning message if possible #14019

Open
WeihanLi opened this issue Dec 24, 2024 · 1 comment

Comments

@WeihanLi
Copy link

NuGet Product(s) Involved

NuGet.exe

The Elevator Pitch

Currently, we have the vulnerability url in the message, but not the fixed version, we could get the fixed version from the URL, while we may not care about the vulnerability details, just want to update a fixed version to stay safe, it would be convenient to include the fixed version in the message.

error NU1903: Warning As Error: Package 'System.Text.Json' 8.0.0 has a known high severity vulnerability, GHSA-hh2w-p6rv-4g7w

Additional Context and Details

It may also contribute to #13372

@nkolev92
Copy link
Member

nkolev92 commented Jan 6, 2025

There's a couple of options:

  1. Enhance the protocol to include the fixed version (this would be a moving target since other advisories might be raised for that version).
  2. A more pragmatic approach that doesn't require protocol changes would be to just log the range and allow the customer to infer the fixed version based on the upper boundary.

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

No branches or pull requests

4 participants