API Resources

POST
/v3/purls

請求與 PURL 清單相關的漏洞,每次請求最多 100 個

此端點會根據指定的 PURL,回傳附有相關漏洞的 PURL 清單。

您可以在這裡找到支援的套件管理工具清單

每次請求最多接受 100 個 PURL。超過此數量的請求會被拒絕並回傳 400,請參閱錯誤。若要查詢超過 100 個 PURL,請將其分成每批最多 100 個,並針對每一批各發送一次請求。

請求本文

purls
list required
Package URL 格式(PURL)。每次請求最多 100 個。

請求範例

curl --request POST \
  --url https://api.vulncheck.com/v3/purls \
  --header 'Authorization: Bearer insert_token_here' \
  --data '[
  "pkg:hex/coherence@0.1.2",
  "pkg:conan/assimp@5.1.0",
  "pkg:conan/crossguid@0.2.2",
]'

回應

{
  "_benchmark": 0.173334,
  "_meta": {
    "timestamp": "2025-12-12T21:22:37.41976683Z",
    "total_documents": 1
  },
  "data": [
    {
      "purl": "pkg:hex/coherence@0.1.2",
      "purl_struct": {
        "type": "hex",
        "namespace": "",
        "name": "coherence",
        "version": "0.1.2",
        "qualifiers": null,
        "subpath": ""
      },
      "cves": [
        "CVE-2018-20301"
      ],
      "vulnerabilities": [
        {
          "detection": "CVE-2018-20301",
          "fixed_version": "0.5.2"
        }
      ]
    }
  ]
}

錯誤

PURL 超過 100 個的請求會回傳 400。例如,包含 101 個 PURL 的請求會回傳:

{
  "error": true,
  "errors": [
    "101 > max size 100: too many purls"
  ]
}