API Resources

GET
/v3/cpe

請求與 CPE 相關的漏洞

此端點會根據指定的 CPE(Common Platform Enumeration)URI 字串,回傳與該套件相關的漏洞清單。我們支援 v2.2 與 v2.3。

路徑參數

cpe
string required
採用 v2.2 或 v2.3 格式的 CPE
isVulnerable
boolean
僅回傳該 CPE 被視為存在漏洞的相關 CVE。
根據預設,API 會回傳所有提及該 CPE 的 CVE,無論該 CPE 是否為漏洞來源。例如,cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:* 在許多 CVE 中被列為易受攻擊組態的一部分,但只有一個 CVE 是裝置本身存在漏洞。
isVulnerable=true:僅回傳該 CPE 存在漏洞的 CVE。

請求範例

curl --request GET \
    --url https://api.vulncheck.com/v3/cpe?cpe=cpe:/a:microsoft:internet_explorer:8.0.6001:beta \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer insert_token_here'

回應

{
  "_benchmark": 0.09967,
  "_meta": {
    "cpe": "cpe:/a:microsoft:internet_explorer:8.0.6001:beta",
    "cpe_struct": {
      "part": "a",
      "vendor": "microsoft",
      "product": "internet_explorer",
      "version": "8\\.0\\.6001",
      "update": "beta",
      "edition": "*",
      "language": "*",
      "sw_edition": "*",
      "target_sw": "*",
      "target_hw": "*",
      "other": "*"
    },
    "timestamp": "2023-09-11T15:03:41.041475537Z",
    "total_documents": 15
  },
  "data": [
    "CVE-2008-4127",
    "CVE-2010-0246",
    "CVE-2010-0248",
    "CVE-2010-0494",
    "CVE-2002-2435",
    "CVE-2012-1545",
    "CVE-2010-0027",
    "CVE-2010-5071",
    "CVE-2010-0492",
    "CVE-2010-1117",
    "CVE-2010-0245",
    "CVE-2010-0490",
    "CVE-2009-2433",
    "CVE-2011-2383",
    "CVE-2010-0244"
  ]
}