Vulnerabilities · GraphQL query

vulnerabilityCPEtoCVEIds query

Returns the ids of the CVEs that affect a product described by CPE 2.3 (Common Platform Enumeration) names. Provide at least one and at most one CPE of each part: application, operating system, and hardware. All the given CPEs are matched together, and the ids come back deduplicated and sorted by year, then sequence number. Load each record with vulnerabilityFetchCVE.

Response

Returns a CVEIdsPayload!

Arguments

Name Description
orgId - OrganizationId! The id of the Organization.
cpe - [String!]! Array of CPEs to match against vulnerabilities.

Example

Query

query vulnerabilityCPEtoCVEIds(
  $orgId: OrganizationId!,
  $cpe: [String!]!
) {
  vulnerabilityCPEtoCVEIds(
    orgId: $orgId,
    cpe: $cpe
  ) {
    ids
  }
}

Variables

{
  "orgId": "615f3b3b28284380e28a7342",
  "cpe": ["xyz789"]
}

Response

{
  "data": {
    "vulnerabilityCPEtoCVEIds": {
      "ids": ["4"]
    }
  }
}