Skip to content

Conversation

@willmurphyscode
Copy link
Contributor

Sometimes secDB using distros include information that a given package version fixed a GHSA. This causes a GHSA match with no severity to be emitted by grype.

In the case that a provider other than the GitHub provider emits a vulnerability with GHSA ID, copy the severity from GitHub.

This is related to anchore/grype#2691 but is only a partial fix. Sometimes SecDB using distros will publish that they have fixed an unreviewed GHSA. This change does not address that situation, because unreviewed GHSAs are not present in the data set, and so this will not be able to copy a severity for one. (Also, GitHub have likely not assigned a severity to an unreviewed GHSA anyway.)

A better approach might be to make the Wolfi vunnel provider know about the GitHub data, and have it fetch the alias field from the GHSA, and put the severity from the CVE that's an alias of the GHSA in its output, see anchore/grype#2691 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants