On Wed, Nov 08, 2023 at 07:39:02AM -0800, celek ibm wrote:
>[...]
>If I want to call
https://api.osv.dev/v1/vulns/GHSA-fxjm-wvj9-9c39 and
>extract the CVSS from there - is there any API/call I can use (meaning can
>I pass the GHSA-fxjm-wvj9-9c39 value and get an advisory back) or should I
>create a direct call to the URL and parse the JSON myself ?
If both of these are in the same OSV ecosystem, it'd better to note the
IDs missing a severity, then do a second pass to attempt resolve
references.
It may not be a good idea to do this, though. For example, if PYSEC does
not assign severities, picking the one that GitHub used for an advisory
describing the same defect wouldn't be correct.
--
hank