API Resources

GET
/v3/purl

請求與 PURL 相關的漏洞

此端點會根據指定的 PURL,回傳與該套件相關的漏洞清單。

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

路徑參數

purl
string required
Package URL 格式(PURL)

請求範例

curl --request GET \
    --url https://api.vulncheck.com/v3/purl?purl=pkg:hex/coherence@0.1.2 \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer insert_token_here'

回應

{
  "_benchmark": 0.057389,
  "_meta": {
    "purl_struct": {
      "type": "hex",
      "namespace": "",
      "name": "coherence",
      "version": "0.1.2",
      "qualifiers": null,
      "subpath": ""
    },
    "timestamp": "2023-09-11T15:02:50.325502302Z",
    "total_documents": 1
  },
  "data": {
    "cves": [
      "CVE-2018-20301"
    ],
    "vulnerabilities": [
      {
        "detection": "CVE-2018-20301",
        "fixed_version": "0.5.2"
      }
    ]
  }
}