vulnerabilities

Vulnerabilities detected in your company's stacks. Returns paginated Vulnerability objects.

Parameters

Name Type Description
orgId optional ID
searchQuery optional String

Search for vulnerabilities by vulnerability name or tool name or vulnerability database ID.

severity optional ID

Severity level: low, moderate, high, or critical.

stackAppId optional ID
stackId optional ID

Example Queries

Get first 10 vulnerabilities:

{
  vulnerabilities(first: 10) {
    edges {
      node {
        name
        severity
      }
    }
  }
}

Search for vulnerabilities with vulnerability database ID CVE-2021-41136:

{
  vulnerabilities(searchQuery: "CVE-2021-41136") {
    edges {
      node {
        name
        severity
      }
    }
  }
}

Get vulnerabilities of stackshare-org organization or product:

{
  vulnerabilities(orgId: "stackshare-org") {
    edges {
      node {
        name
        severity
      }
    }
  }
}

Get vulnerabilities for backend stack with critial severity:

{
  vulnerabilities(stackId: "backend", severity: "critical") {
    edges {
      node {
        name
        severity
      }
    }
  }
}

Get vulnerabilities in greater details with their vulnerable stacks:

{
  vulnerabilities(first: 10) {
    edges {
      node {
        vulnerabilityDatabaseId
        severity
        name
        publishedAt
        description
        url
        tool {
          name
          slug
        }
        vulnerabilityStacks(first: 10) {
          edges {
            node {
              stack {
                name
                slug
              }
              version {
                versionNumber
                releasedAt
                websiteUrl
              }
              firstPatchedVersion
              versionRange
            }
          }
        }
      }
    }
  }
}