snyk-labs / pysnyk

A Python client for the Snyk API.
https://snyk.docs.apiary.io/
MIT License
85 stars 116 forks source link

Add `cvssDetails` to IssueData #180

Closed keiya-nobuta closed 8 months ago

keiya-nobuta commented 1 year ago

I think it's useful for the user to be able to get information about the NVD's CVSS score etc, but why is this a hidden (undocumented) attribute?

example:

$ python examples/api-demo-2c-list-issues-aggregated.py --orgId $ORG_ID --projectId $PRJ_ID

 SQL Injection
  id: SNYK-UNMANAGED-POSTGRESQL-2336056
  url: https://snyk.io/vuln/SNYK-UNMANAGED-POSTGRESQL-2336056
  https://ftp.postgresql.org|postgresql@['9.6.1']
  Severity: critical
  CVSS Score: 9.8
    NVD score: 9.8
    Red Hat score: 8
    SUSE score: 9.8
<...>