Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Import CWE and CVSS info from GHA #80

Open
elanzini opened this issue Jun 8, 2021 · 0 comments
Open

Import CWE and CVSS info from GHA #80

elanzini opened this issue Jun 8, 2021 · 0 comments
Assignees
Labels
advisories All issues concerning new advisories enhancement New feature or request

Comments

@elanzini
Copy link
Member

elanzini commented Jun 8, 2021

GitHub Advisory also provides CWE and CVSS information for some vulnerabilities.
It is unclear whether this information is also always found on NVD.
To make sure we capture every bit of information, we can add this to the importing in the GHParser.java class.

The updated query would be:

query {
  securityAdvisories(first: 100) {
    nodes {
      description
      identifiers {
        type
        value
      }
      severity
      references {
        url
      }
      cvss {
        score
        vectorString
      }
      cwes(first: 10) {
        nodes {
          cweId
        }
      }
      vulnerabilities(first: 10) {
        nodes {
          package {
            ecosystem
            name
          }
          vulnerableVersionRange
          firstPatchedVersion {
            identifier
          }
        }
      }
    }
    pageInfo {
      endCursor
      hasNextPage
    }
  }
}

Note: CVSS info is provided using version 3

@elanzini elanzini added enhancement New feature or request advisories All issues concerning new advisories labels Jun 8, 2021
@elanzini elanzini self-assigned this Jun 8, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
advisories All issues concerning new advisories enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant