API Resources

GET
/v3/search/cpe

請求與特定 CPE 屬性相關的漏洞

此端點以指定的 CPE(Common Platform Enumeration)結構為基礎,可依 part、vendor、product 及/或 version 屬性進行搜尋,並回傳相關的漏洞清單。

所有搜尋欄位皆為選用。屬性必須符合 NIST CPE 規格的規範。

結果採分頁方式回傳:根據預設,此端點會回傳前 100 個相符的 CPE。請使用 page 與 limit 取得其餘結果,並讀取 _meta.total_documents 以了解相符結果的總數。請參閱下方的分頁。

路徑參數

part
string
若有指定,必須為 a(應用程式)、o(作業系統)或 h(硬體)其中之一。若未指定,則會搜尋所有類型。
vendor
string
此屬性的值應描述或識別製造或建立該產品的個人或組織。任何符合格式正確名稱(Well-formed Names,WFN)要求的字串,皆可指定為此屬性的值。
product
string
系統/套件/元件的名稱。產品與廠商名稱有時會相同。名稱不可包含空格、斜線或大多數特殊字元,空白字元應以底線取代。
version
string
系統/套件/元件的版本。通常為語意化版本字串,但可能因廠商而異。此屬性支援結尾萬用字元 *。 例如:
version=8 只會回傳版本字串完全為 8 的 CPE。
version=8.0.6* 會回傳所有以 8.0.6 開頭的 CPE。
isVulnerable
boolean
僅回傳該 CPE 被視為存在漏洞的相關 CVE。
根據預設,API 會回傳所有提及該 CPE 的 CVE,無論該 CPE 是否為漏洞來源。例如,cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:* 在許多 CVE 中被列為易受攻擊組態的一部分,但只有一個 CVE 是裝置本身存在漏洞。
isVulnerable=true:僅回傳該 CPE 存在漏洞的 CVE。

分頁參數

page
integer
要回傳的結果頁碼(從 1 開始)。預設為 1。page 乘以 limit 不得超過 10000,請參閱分頁。
limit
integer
每頁回傳的 CPE 數量。預設為 100,這也是上限。
sort
string
用來排序結果的欄位。預設為 _id,這是此索引中唯一可排序的欄位。
order
string
排序方向,可為 asc 或 desc。預設為 asc。

分頁

每個回應都帶有一個描述目前頁面的 _meta 物件:

欄位說明
timestamp查詢執行的時間(UTC)。
limit此請求所套用的每頁大小。
total_documents所有頁面中符合查詢的 CPE 總數。
sort結果排序所依據的欄位。
order排序方向,asc 或 desc。
page所回傳的頁碼(從 1 開始)。
total_pagestotal_documents 除以 limit 並無條件進位的結果。
max_pages提供給分頁使用者介面的提示,說明要呈現多少個頁面連結。它不會限制您可以請求的頁數。
first_item此頁第一個 CPE 的位置(從 1 開始)。
last_item此頁最後一個 CPE 的位置(從 1 開始)。

除非您傳入 sort 與 order,否則結果會依 _id 遞增排序。此預設排序是穩定的,因此在您逐頁瀏覽時,CPE 不會在頁面之間移動。

total_documents 會回報所有相符結果,但透過分頁只能取得前 10,000 筆。page 乘以 limit 超過 10000 的請求會被拒絕並回傳 400:

{
  "error": true,
  "errors": [
    "failed to compose query: invalid pagination parameters: pagination window exceeds cluster maximum: page * limit must not exceed 10000 (got page=200, limit=100)"
  ]
}

若搜尋相符的 CPE 超過此數量,請使用 part、version 或 isVulnerable 縮小範圍,而不要繼續往後分頁。

請求範例

請求特定廠商、產品與版本存在漏洞的 CVE

curl --request GET \
    --url "https://api.vulncheck.com/v3/search/cpe?vendor=mediatek&product=mt6890&version=*&isVulnerable=true" \
    --header "Accept: application/json" \
    --header "Authorization: Bearer insert_token_here"

回應

{
  "_benchmark": 0.038296,
  "_meta": {
    "timestamp": "2026-08-24T18:51:12.343892243Z",
    "limit": 100,
    "total_documents": 1,
    "sort": "_id",
    "order": "asc",
    "page": 1,
    "total_pages": 1,
    "max_pages": 6,
    "first_item": 1,
    "last_item": 1
  },
  "data": [
    {
      "cpe": "cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:*",
      "cpe_struct": {
        "part": "h",
        "vendor": "mediatek",
        "product": "mt6890",
        "version": "-",
        "update": "*",
        "edition": "*",
        "language": "*",
        "sw_edition": "*",
        "target_sw": "*",
        "target_hw": "*",
        "other": "*"
      },
      "cves": [
        "CVE-2025-20654"
      ]
    }
  ]
}

請求特定廠商、產品與版本的所有 CVE

curl --request GET \
    --url "https://api.vulncheck.com/v3/search/cpe?vendor=mediatek&product=mt6890&version=*" \
    --header "Accept: application/json" \
    --header "Authorization: Bearer insert_token_here"

回應

{
  "_benchmark": 0.038201,
  "_meta": {
    "timestamp": "2026-08-24T18:52:00.252053347Z",
    "limit": 100,
    "total_documents": 1,
    "sort": "_id",
    "order": "asc",
    "page": 1,
    "total_pages": 1,
    "max_pages": 6,
    "first_item": 1,
    "last_item": 1
  },
  "data": [
    {
      "cpe": "cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:*",
      "cpe_struct": {
        "part": "h",
        "vendor": "mediatek",
        "product": "mt6890",
        "version": "-",
        "update": "*",
        "edition": "*",
        "language": "*",
        "sw_edition": "*",
        "target_sw": "*",
        "target_hw": "*",
        "other": "*"
      },
      "cves": [
        "CVE-2021-40148",
        "CVE-2022-20035",
        "CVE-2022-20036",
        "CVE-2022-20037",
        "CVE-2022-20040",
        "CVE-2022-20051",
        "CVE-2022-20052",
        "CVE-2022-20053",
        "CVE-2022-20068",
        "CVE-2022-20070",
        "CVE-2022-20072",
        "CVE-2022-20074",
        "CVE-2022-20083",
        "CVE-2022-21744",
        "CVE-2022-21749",
        "CVE-2022-21755",
        "CVE-2022-21756",
        "CVE-2022-21758",
        "CVE-2022-21763",
        "CVE-2022-21764",
        "CVE-2022-21773",
        "CVE-2022-26446",
        "CVE-2023-20694",
        "CVE-2023-20695",
        "CVE-2023-20696",
        "CVE-2023-20725",
        "CVE-2023-20726",
        "CVE-2023-20775",
        "CVE-2023-20790",
        "CVE-2023-20796",
        "CVE-2023-20820",
        "CVE-2023-20821",
        "CVE-2023-20828",
        "CVE-2023-20829",
        "CVE-2023-20830",
        "CVE-2023-20831",
        "CVE-2023-20832",
        "CVE-2023-20838",
        "CVE-2023-32810",
        "CVE-2023-32812",
        "CVE-2023-32813",
        "CVE-2023-32814",
        "CVE-2023-32815",
        "CVE-2023-32831",
        "CVE-2023-32840",
        "CVE-2023-32841",
        "CVE-2023-32842",
        "CVE-2023-32843",
        "CVE-2023-32844",
        "CVE-2023-32845",
        "CVE-2023-32846",
        "CVE-2023-32855",
        "CVE-2023-32871",
        "CVE-2023-32874",
        "CVE-2023-32886",
        "CVE-2023-32887",
        "CVE-2023-32888",
        "CVE-2023-32890",
        "CVE-2023-32891",
        "CVE-2024-20003",
        "CVE-2024-20004",
        "CVE-2024-20006",
        "CVE-2024-20017",
        "CVE-2024-20022",
        "CVE-2024-20023",
        "CVE-2024-20039",
        "CVE-2024-20040",
        "CVE-2024-20049",
        "CVE-2024-20050",
        "CVE-2024-20051",
        "CVE-2024-20052",
        "CVE-2024-20053",
        "CVE-2024-20054",
        "CVE-2024-20056",
        "CVE-2024-20071",
        "CVE-2024-20072",
        "CVE-2024-20073",
        "CVE-2024-20080",
        "CVE-2024-20081",
        "CVE-2024-20082",
        "CVE-2024-20084",
        "CVE-2024-20085",
        "CVE-2024-20094",
        "CVE-2024-20104",
        "CVE-2024-20107",
        "CVE-2024-20136",
        "CVE-2024-20143",
        "CVE-2024-20144",
        "CVE-2024-20145",
        "CVE-2024-20150",
        "CVE-2025-20635",
        "CVE-2025-20644",
        "CVE-2025-20646",
        "CVE-2025-20649",
        "CVE-2025-20650",
        "CVE-2025-20651",
        "CVE-2025-20654",
        "CVE-2025-20659",
        "CVE-2025-20666",
        "CVE-2025-20667",
        "CVE-2025-20674",
        "CVE-2025-20678",
        "CVE-2025-20681",
        "CVE-2025-20682",
        "CVE-2025-20683",
        "CVE-2025-20685",
        "CVE-2025-20686",
        "CVE-2025-20688",
        "CVE-2025-20689",
        "CVE-2025-20690",
        "CVE-2025-20691",
        "CVE-2025-20692"
      ]
    }
  ]
}

分頁瀏覽大型結果集

google/chrome 相符的 CPE 多達數千個,因此請一次請求一頁。_meta.total_pages 會告訴您在所選的 limit 下共有多少頁可用。

curl --request GET \
    --url "https://api.vulncheck.com/v3/search/cpe?vendor=google&product=chrome&limit=2&page=3" \
    --header "Accept: application/json" \
    --header "Authorization: Bearer insert_token_here"

回應

{
  "_benchmark": 0.072972,
  "_meta": {
    "timestamp": "2026-08-24T18:52:53.085504367Z",
    "limit": 2,
    "total_documents": 9741,
    "sort": "_id",
    "order": "asc",
    "page": 3,
    "total_pages": 4871,
    "max_pages": 6,
    "first_item": 5,
    "last_item": 6
  },
  "data": [
    {
      "cpe": "cpe:2.3:a:google:chrome:78.0.3904.48:*:*:*:*:*:*:*",
      "cpe_struct": {
        "part": "a",
        "vendor": "google",
        "product": "chrome",
        "version": "78\\.0\\.3904\\.48",
        "update": "*",
        "edition": "*",
        "language": "*",
        "sw_edition": "*",
        "target_sw": "*",
        "target_hw": "*",
        "other": "*"
      },
      "cves": [
        "CVE-2012-2647",
        "CVE-2012-4929",
        "CVE-2012-4930",
        "CVE-2019-13699",
        "..."
      ]
    },
    {
      "cpe": "cpe:2.3:a:google:chrome:76.0.3809.91:*:*:*:*:*:*:*",
      "cpe_struct": {
        "part": "a",
        "vendor": "google",
        "product": "chrome",
        "version": "76\\.0\\.3809\\.91",
        "update": "*",
        "edition": "*",
        "language": "*",
        "sw_edition": "*",
        "target_sw": "*",
        "target_hw": "*",
        "other": "*"
      },
      "cves": [
        "CVE-2012-2647",
        "CVE-2012-4929",
        "CVE-2012-4930",
        "CVE-2019-13659",
        "..."
      ]
    }
  ]
}