v1

latestOpenAPI 3.0.1Apache 2.02026-07-17111176225.7 KB
Images

Get vulnerabilities by type

get/images/{imageDigest}/vuln/{vtype}

Path parameters

imageDigeststring required
vtypestring required

Query parameters

force_refreshboolean
vendor_onlyboolean

Filter results to include only vulnerabilities that are not marked as invalid by upstream OS vendor data. When set to true, it will filter out all vulnerabilities where will_not_fix is False. If false all vulnerabilities are returned regardless of will_not_fix

Headers

x-anchore-accountstring

An account name to change the resource scope of the request to that account, if permissions allow (admin only)

Response

Vulnerability listing for the image

imageDigeststring
vulnerability_typestring

Example response

{
  "vulnerability_type": "vulnerability_type",
  "vulnerabilities": [
    {
      "severity": "severity",
      "package": "package",
      "package_path": "package_path",
      "nvd_data": [
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        },
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        }
      ],
      "vendor_data": [
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        },
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        }
      ],
      "package_type": "package_type",
      "package_cpe": "package_cpe",
      "url": "url",
      "will_not_fix": true,
      "feed": "feed",
      "package_version": "package_version",
      "fix": "fix",
      "vuln": "vuln",
      "feed_group": "feed_group",
      "package_name": "package_name"
    },
    {
      "severity": "severity",
      "package": "package",
      "package_path": "package_path",
      "nvd_data": [
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        },
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        }
      ],
      "vendor_data": [
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        },
        {
          "cvss_v3": {
            "base_score": 5.962133916683182,
            "impact_score": 2.3021358869347655,
            "exploitability_score": 5.637376656633329
          },
          "cvss_v2": {
            "base_score": 0.8008281904610115,
            "impact_score": 1.4658129805029452,
            "exploitability_score": 6.027456183070403
          },
          "id": "id"
        }
      ],
      "package_type": "package_type",
      "package_cpe": "package_cpe",
      "url": "url",
      "will_not_fix": true,
      "feed": "feed",
      "package_version": "package_version",
      "fix": "fix",
      "vuln": "vuln",
      "feed_group": "feed_group",
      "package_name": "package_name"
    }
  ],
  "imageDigest": "imageDigest"
}