Repository navigation
Should vulnerabilities for versions with qualifier (e.g. "1.2.3-internal.1") still be flagged? #8875
Replies: 2 comments 4 replies
|
it might not be intentional. Would need a reproducer with specific details of dependency, expected vulnerability source, report evidence contents etc to know. it depends whether you expect it to match something from Sonatype Guide or NVD, and the behaviour may differ. For OSSIndex/Guide matching is largely delegated to Sonatype once the version is extracted from a POM/Gradle metadata. For NVD there is a whole bunch of logic to determine a match on ODC's side. IIRC there is some special handling for "known" version part suffixes such as alpha, beta, RC etc to treat them as "less than", but otherwise I imagine they will be treated as "greater than", and thus "fixed". Parsing version numbers like ODC needs to do is obviously fundamentally indeterminate across ecosystems, and totally inconsistent, lacking formal specification except sometimes within NVD CPE specifiers. There is no special purpose flag, but you might be able to do something based on hints file using |
|
@felixscheinost, on your follow-up about why the hint had no effect: Hints do run before OSS Index, but they can't change what OSS Index is asked about:
So for findings that come only from OSS Index, a hint can't make ODC treat If you want "flag it, verify the fix, then suppress" for OSS Index results too, Sonatype would need to see the upstream version. As far as I can see, ODC has no way to override the purl today, so that would be a feature request, for example letting a hint add or replace a purl identifier. |
Uh oh!
There was an error while loading. Please reload this page.
I'm getting fixes for older versions of Java libraries from a third party provider.
This means instead of having library "1.2.3", I'm using "1.2.3-internal.1".
I noticed that this means that the Gradle plugin will no longer flag issues in "1.2.3".
I'm assuming this is intentional, but is there a way around this?
I would prefer a workflow where I'm double checking that the
internal.1version actually fixed a given CVE and then suppressing it.Thanks!
All reactions