devguard icon indicating copy to clipboard operation
devguard copied to clipboard

Suggested quickfixes for transitive dependencies should be actionable or omitted

Open Valodim opened this issue 3 months ago • 0 comments

Is your feature request related to a problem? Please describe.

For transitive dependencies, the "quick fix" box is in its current state, as far as I can tell, mostly noise.

For instance, in this dependency graph from a project that has a dependency on playwright, many layers down there is a dependency on ip.

Image

The info and suggestion are as such:

Image

Updating like this is not really a viable solution in almost all cases for transitive dependencies. At the risk of sounding negative, suggestions that are bogus at first glance mostly teach my brain to ignore such boxes as UI noise :)

Describe the solution you'd like

A better but complicated improvement could be to display info about the direct dependency, since that is the one that the user will actually update, and enrich it with some info related to the security issue. In this example, three version numbers might be of interest:

  1. The minimum version that resolves the specific issue
  2. The newest version that doesn't go to a new major version
  3. The latest version

If it's easily available, timestamps would also be helpful info :)

Describe alternatives you've considered

In scenarios where the quick fix info is likely pointless, such as for transitive dependencies here, a simple improvement would be to just show nothing, or a more correct though vague suggestion like "Updating playwright might resolve this issue". But this might be a personal preference.

Valodim avatar Sep 23 '25 10:09 Valodim