只要提供單一 CVE ID,此端點就會搜尋您的權杖可存取的所有 V3 索引,並在一個彙整的回應中傳回每一筆符合的文件。這是查看 VulnCheck 針對某個漏洞所掌握之全部資料最快的方式,包括公告、漏洞利用、威脅情資、KEV 項目、評分與廠商資料,無須逐一查詢各個索引。
cve 是唯一的必要參數。其值必須是格式正確的 CVE 識別碼,否則會以 400 拒絕。
結果範圍取決於您的授權。您的權杖無法存取的索引會被靜默排除,而不會引發錯誤,因此 _meta.queried_index_count 會回報實際為您搜尋的索引數量。
結果採分頁方式傳回:預設情況下,此端點會傳回前 500 筆符合的文件。共有兩種獨立的分頁模式可用,且兩者不可併用,詳見下方的分頁。
CVE-2025-20654。其值必須是格式正確的 CVE ID。若缺少此值或格式錯誤,將傳回 400。500,上限為 1000。超過上限的值會被限制為 1000 而非遭拒,非數值或非正數的值則會改用預設值。此端點支援兩種互斥的分頁模式。將 page 與任一游標參數併用會傳回 400。
_meta.next_cursor 值以取得下一頁。cursor。每個回應都包含一個描述目前頁面的 _meta 物件:
| 欄位 | 說明 |
|---|---|
timestamp | 查詢執行的時間(UTC)。 |
cve | 所搜尋的 CVE 識別碼。 |
page | 傳回的頁碼(從 1 起算)。 |
limit | 此請求所套用的每頁大小。 |
total_count | 在所有已搜尋的索引中,符合該 CVE 的文件總數。 |
current_count | 此回應中傳回的文件數量。 |
total_pages | total_count 除以 limit 並無條件進位。僅限頁碼模式。 |
queried_index_count | 套用您的授權後所搜尋的索引數量。 |
indices_with_hits | 上述索引中至少包含一筆符合結果的索引數量。 |
top_index_counts | 符合結果最多的索引及其文件數量。最多 10 筆。 |
next_cursor | 用於取得下一頁的游標。最後一頁不會出現。僅限游標模式。 |
truncated | 當此頁的文件數少於 limit 但仍有後續結果時為 true。僅限游標模式。 |
傳入 page 與 limit。此模式會填入 total_pages,讓您事先得知需要發送多少次請求。
total_count 會回報所有符合結果,但以此方式只能取得前 10,000 筆。page 乘以 limit 超過 10000 的請求會以 400 拒絕:
{
"error": true,
"errors": [
"failed executing cve search query: All attempts fail:\n#1: Status: 400, Type: search_phase_execution_exception, Reason: all shards failed ... Reason: Result window is too large, from + size must be less than or equal to: [10000] but was [11000] ..."
]
}
若 CVE 的符合文件超過 10,000 筆,請改用游標模式。
傳入空值的 cursor 以開始,之後在每次後續請求中帶回 _meta.next_cursor。此模式可走訪完整結果集且沒有深度限制,但不會填入 total_pages。
持續使用 _meta.next_cursor 發送請求,直到回應中不再包含此值為止;該回應即為最後一頁。
即使仍有後續結果,某一頁的文件數也可能少於 limit。在這些頁面上,_meta.truncated 為 true,且仍會傳回 next_cursor。
在游標模式中,_meta.page 一律回報為 1,並不會追蹤您目前的位置。請以游標本身來追蹤位置。
data 是由各索引中符合文件組成的扁平陣列。每個項目都會說明文件的來源及其內容:
| 欄位 | 說明 |
|---|---|
index | 找到該文件的索引名稱。 |
id | 該文件在該索引中的唯一識別碼。 |
score | 相關性分數。分數越高越相關,結果依分數由高至低排序傳回。 |
source | 完整文件。其結構因索引而異,請參閱 index 所指索引的說明文件。 |
由於 source 是原始的索引文件,同一個回應中 data 各項目的結構並不一致。請先讀取 index,再據此解析 source。
curl --request GET \
--url "https://api.vulncheck.com/v3/search/cve?cve=CVE-2025-20654&limit=3" \
--header "Accept: application/json" \
--header "Authorization: Bearer insert_token_here"
{
"_benchmark": 1.319464,
"_meta": {
"timestamp": "2026-08-28T11:19:19.867546203Z",
"cve": "CVE-2025-20654",
"page": 1,
"limit": 3,
"total_count": 36,
"current_count": 3,
"total_pages": 12,
"queried_index_count": 475,
"indices_with_hits": 23,
"top_index_counts": [
{ "index": "advisories", "doc_count": 11 },
{ "index": "macert", "doc_count": 2 },
{ "index": "mediatek", "doc_count": 2 },
{ "index": "mitre-attack-cve", "doc_count": 2 },
{ "index": "alibaba-advs", "doc_count": 1 },
{ "index": "bdu", "doc_count": 1 },
{ "index": "cnnvd", "doc_count": 1 },
{ "index": "cves_identity_mappings", "doc_count": 1 },
{ "index": "epss", "doc_count": 1 },
{ "index": "euvd", "doc_count": 1 }
]
},
"data": [
{
"index": "advisories",
"id": "d38a1df50f6723bdb672995d2db7e588",
"score": 30.4604,
"source": {
"external_id": [],
"url": "http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-202504-1044",
"tags": [
"Government Advisory",
"VDB Entry"
],
"date_added": "2025-04-07T00:00:00Z",
"refsource": "cnnvd",
"cve": [
"CVE-2025-20654"
],
"name": "MediaTek Chipsets 安全漏洞",
"lang": "cn",
"_timestamp": "2025-04-09T00:42:44.021248Z"
}
},
{
"index": "advisories",
"id": "2ae88c424ec0628fbe7f80456a00f949",
"score": 30.40173,
"source": {
"external_id": [],
"url": "https://github.com/github/advisory-database/blob/main/advisories/unreviewed/2025/04/GHSA-xrqc-54h4-vmvv/GHSA-xrqc-54h4-vmvv.json",
"tags": [
"VDB Entry"
],
"date_added": "2025-04-07T06:30:27Z",
"refsource": "ghsa",
"cve": [
"CVE-2025-20654"
],
"name": "GHSA Advisory",
"lang": "en",
"_timestamp": "2025-04-07T10:34:55.927322Z"
}
}
]
}
傳送不帶值的 cursor 以請求第一頁。
curl --request GET \
--url "https://api.vulncheck.com/v3/search/cve?cve=CVE-2025-20654&limit=2&cursor" \
--header "Accept: application/json" \
--header "Authorization: Bearer insert_token_here"
_meta.next_cursor 存在,表示仍有後續結果。請注意,此模式下不會出現 total_pages。
{
"_meta": {
"timestamp": "2026-08-28T11:19:30.402323776Z",
"cve": "CVE-2025-20654",
"page": 1,
"limit": 2,
"total_count": 36,
"current_count": 2,
"queried_index_count": 475,
"indices_with_hits": 23,
"top_index_counts": [
{ "index": "advisories", "doc_count": 11 },
{ "index": "macert", "doc_count": 2 }
],
"next_cursor": "WzMwLjM4NTc3MywiYWR2aXNvcmllcyIsIjJhZTg4YzQyNGVjMDYyOGZiZTdmODA0NTZhMDBmOTQ5Il0="
},
"data": [
{
"index": "advisories",
"id": "d38a1df50f6723bdb672995d2db7e588",
"score": 30.4604,
"source": { "...": "..." }
},
{
"index": "advisories",
"id": "2ae88c424ec0628fbe7f80456a00f949",
"score": 30.385773,
"source": { "...": "..." }
}
]
}
傳入上一個回應中的 next_cursor 值。
curl --request GET \
--url "https://api.vulncheck.com/v3/search/cve?cve=CVE-2025-20654&limit=2&cursor=WzMwLjM4NTc3MywiYWR2aXNvcmllcyIsIjJhZTg4YzQyNGVjMDYyOGZiZTdmODA0NTZhMDBmOTQ5Il0=" \
--header "Accept: application/json" \
--header "Authorization: Bearer insert_token_here"
{
"_meta": {
"cve": "CVE-2025-20654",
"limit": 2,
"total_count": 36,
"current_count": 2,
"queried_index_count": 475,
"indices_with_hits": 23,
"next_cursor": "WzI5LjU5Nzc3LCJhZHZpc29yaWVzIiwiNTE4NTdhZWU5ODNhOGVkNDNhNzQ5YWViNTFmZGFjNzYiXQ=="
},
"data": [
{
"index": "advisories",
"id": "4df2e4e22c55de1a2a5991453cb72651",
"score": 29.59777,
"source": {
"external_id": [],
"url": "https://github.com/cisagov/vulnrichment/blob/develop/2025/20xxx/CVE-2025-20654.json",
"tags": [
"Government Advisory"
],
"date_added": "2025-04-07T03:14:45Z",
"refsource": "vulnrichment",
"cve": [
"CVE-2025-20654"
],
"name": "VULNRICHMENT Advisory",
"lang": "en",
"_timestamp": "2025-04-07T17:37:04.927385Z"
}
}
]
}
缺少 cve 或格式錯誤時會傳回 400:
{
"error": true,
"errors": [
"invalid endpoint parameters: cve is required"
]
}
{
"error": true,
"errors": [
"invalid endpoint parameters: invalid cve format"
]
}
混用兩種分頁模式會傳回 400:
{
"error": true,
"errors": [
"invalid endpoint parameters: invalid endpoint parameter: page cannot be combined with cursor pagination"
]
}