Get NVD Enrichment Data for CVEs
curl --request GET \
--url https://api.leen.dev/v1/enrichments/nvdimport requests
url = "https://api.leen.dev/v1/enrichments/nvd"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.leen.dev/v1/enrichments/nvd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leen.dev/v1/enrichments/nvd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.leen.dev/v1/enrichments/nvd"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.leen.dev/v1/enrichments/nvd")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leen.dev/v1/enrichments/nvd")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"count": 123,
"items": [
{
"id": "<string>",
"sourceIdentifier": "<string>",
"published": "<string>",
"lastModified": "<string>",
"vulnStatus": "<string>",
"cveTags": [
{
"sourceIdentifier": "<string>",
"tags": [
"<string>"
]
}
],
"descriptions": [
{
"lang": "<string>",
"value": "<string>"
}
],
"metrics": {
"cvssMetricV2": [
{
"source": "<string>",
"type": "<string>",
"cvssData": {
"version": "<string>",
"vectorString": "<string>",
"accessVector": "<string>",
"accessComplexity": "<string>",
"authentication": "<string>",
"confidentialityImpact": "<string>",
"integrityImpact": "<string>",
"availabilityImpact": "<string>",
"baseScore": 123
},
"baseSeverity": "<string>",
"exploitabilityScore": 123,
"impactScore": 123,
"acInsufInfo": true,
"obtainAllPrivilege": true,
"obtainUserPrivilege": true,
"obtainOtherPrivilege": true,
"userInteractionRequired": true
}
],
"cvssMetricV31": [
{
"source": "<string>",
"type": "<string>",
"cvssData": {
"version": "<string>",
"vectorString": "<string>",
"attackVector": "<string>",
"attackComplexity": "<string>",
"privilegesRequired": "<string>",
"userInteraction": "<string>",
"scope": "<string>",
"confidentialityImpact": "<string>",
"integrityImpact": "<string>",
"availabilityImpact": "<string>",
"baseScore": 123,
"baseSeverity": "<string>"
},
"exploitabilityScore": 123,
"impactScore": 123
}
]
},
"weaknesses": [
{
"source": "<string>",
"type": "<string>",
"description": [
{
"lang": "<string>",
"value": "<string>"
}
]
}
],
"configuration": {
"nodes": [
{
"operator": "<string>",
"negate": true,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "<string>",
"matchCriteriaId": "<string>"
}
]
}
]
},
"references": [
{
"url": "<string>",
"source": "<string>"
}
]
}
],
"total": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Enrichments
Get NVD Enrichment Data for CVEs
Get NVD Enrichment Data for CVEs
GET
/
enrichments
/
nvd
Get NVD Enrichment Data for CVEs
curl --request GET \
--url https://api.leen.dev/v1/enrichments/nvdimport requests
url = "https://api.leen.dev/v1/enrichments/nvd"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.leen.dev/v1/enrichments/nvd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leen.dev/v1/enrichments/nvd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.leen.dev/v1/enrichments/nvd"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.leen.dev/v1/enrichments/nvd")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leen.dev/v1/enrichments/nvd")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"count": 123,
"items": [
{
"id": "<string>",
"sourceIdentifier": "<string>",
"published": "<string>",
"lastModified": "<string>",
"vulnStatus": "<string>",
"cveTags": [
{
"sourceIdentifier": "<string>",
"tags": [
"<string>"
]
}
],
"descriptions": [
{
"lang": "<string>",
"value": "<string>"
}
],
"metrics": {
"cvssMetricV2": [
{
"source": "<string>",
"type": "<string>",
"cvssData": {
"version": "<string>",
"vectorString": "<string>",
"accessVector": "<string>",
"accessComplexity": "<string>",
"authentication": "<string>",
"confidentialityImpact": "<string>",
"integrityImpact": "<string>",
"availabilityImpact": "<string>",
"baseScore": 123
},
"baseSeverity": "<string>",
"exploitabilityScore": 123,
"impactScore": 123,
"acInsufInfo": true,
"obtainAllPrivilege": true,
"obtainUserPrivilege": true,
"obtainOtherPrivilege": true,
"userInteractionRequired": true
}
],
"cvssMetricV31": [
{
"source": "<string>",
"type": "<string>",
"cvssData": {
"version": "<string>",
"vectorString": "<string>",
"attackVector": "<string>",
"attackComplexity": "<string>",
"privilegesRequired": "<string>",
"userInteraction": "<string>",
"scope": "<string>",
"confidentialityImpact": "<string>",
"integrityImpact": "<string>",
"availabilityImpact": "<string>",
"baseScore": 123,
"baseSeverity": "<string>"
},
"exploitabilityScore": 123,
"impactScore": 123
}
]
},
"weaknesses": [
{
"source": "<string>",
"type": "<string>",
"description": [
{
"lang": "<string>",
"value": "<string>"
}
]
}
],
"configuration": {
"nodes": [
{
"operator": "<string>",
"negate": true,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "<string>",
"matchCriteriaId": "<string>"
}
]
}
]
},
"references": [
{
"url": "<string>",
"source": "<string>"
}
]
}
],
"total": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Query Parameters
Datetime filter, only return items updated since this datetime. Example format: 2021-01-01T00:00:00+00:00
Limit size (page size)
Required range:
x >= 0Offset index (starting index of page)
Required range:
x >= 0Skips returning the total rows, total is set to null when true
⌘I