Based on the specified CPE (Common Platform Enumeration) URI string, this endpoint will return a list of vulnerabilities that are related to the package. We support v2.2 and v2.3
CPE scheme using either the v2.2 or v2.3 format
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'
package main
import (
"encoding/json"
"fmt"
"log"
"github.com/vulncheck-oss/sdk-go"
)
func main() {
client := sdk.Connect("https://api.vulncheck.com", "insert_token_here")
response, err := client.GetCpe("cpe:/a:microsoft:internet_explorer:8.0.6001:beta")
if err != nil {
panic(err)
}
prettyJSON, err := json.MarshalIndent(response.Data, "", " ")
if err != nil {
log.Fatalf("Failed to generate JSON: %v", err)
return
}
fmt.Println(string(prettyJSON))
}
import vulncheck_sdk
configuration = vulncheck_sdk.Configuration(host="https://api.vulncheck.com/v3")
configuration.api_key["Bearer"] = "insert_token_here"
with vulncheck_sdk.ApiClient(configuration) as api_client:
endpoints_client = vulncheck_sdk.EndpointsApi(api_client)
api_response = endpoints_client.cpe_get("cpe:/a:microsoft:internet_explorer:8.0.6001:beta")
print(api_response.data)
vulncheck cpe cpe:/a:microsoft:internet_explorer:8.0.6001:beta
{
"_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"
]
}