Update CVE Status
curl --request POST \
--url https://v1.api.altostrat.io/scans/cve/mac-address/cve/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mac_address": "00:1A:2B:3C:4D:5E",
"cve_id": "CVE-2023-1234",
"status": "accepted",
"justification": "This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low."
}
'import requests
url = "https://v1.api.altostrat.io/scans/cve/mac-address/cve/status"
payload = {
"mac_address": "00:1A:2B:3C:4D:5E",
"cve_id": "CVE-2023-1234",
"status": "accepted",
"justification": "This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mac_address: '00:1A:2B:3C:4D:5E',
cve_id: 'CVE-2023-1234',
status: 'accepted',
justification: 'This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.'
})
};
fetch('https://v1.api.altostrat.io/scans/cve/mac-address/cve/status', 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://v1.api.altostrat.io/scans/cve/mac-address/cve/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mac_address' => '00:1A:2B:3C:4D:5E',
'cve_id' => 'CVE-2023-1234',
'status' => 'accepted',
'justification' => 'This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://v1.api.altostrat.io/scans/cve/mac-address/cve/status"
payload := strings.NewReader("{\n \"mac_address\": \"00:1A:2B:3C:4D:5E\",\n \"cve_id\": \"CVE-2023-1234\",\n \"status\": \"accepted\",\n \"justification\": \"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://v1.api.altostrat.io/scans/cve/mac-address/cve/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mac_address\": \"00:1A:2B:3C:4D:5E\",\n \"cve_id\": \"CVE-2023-1234\",\n \"status\": \"accepted\",\n \"justification\": \"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.api.altostrat.io/scans/cve/mac-address/cve/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mac_address\": \"00:1A:2B:3C:4D:5E\",\n \"cve_id\": \"CVE-2023-1234\",\n \"status\": \"accepted\",\n \"justification\": \"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mac_address": "00:1A:2B:3C:4D:5E",
"cve_id": "CVE-2023-1234",
"status": "accepted",
"justification": "Risk accepted due to internal-only service with no external access.",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiration_date": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"message": "CVE status updated successfully"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}Vulnerability Management
Update CVE Status
Updates the status of a specific CVE for a given MAC address. Use this to mark a vulnerability as ‘accepted’ (e.g., a false positive or acceptable risk) or ‘mitigated’ (e.g., a patch has been applied or a workaround is in place). Each update creates a new historical record.
POST
/
scans
/
cve
/
mac-address
/
cve
/
status
Update CVE Status
curl --request POST \
--url https://v1.api.altostrat.io/scans/cve/mac-address/cve/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mac_address": "00:1A:2B:3C:4D:5E",
"cve_id": "CVE-2023-1234",
"status": "accepted",
"justification": "This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low."
}
'import requests
url = "https://v1.api.altostrat.io/scans/cve/mac-address/cve/status"
payload = {
"mac_address": "00:1A:2B:3C:4D:5E",
"cve_id": "CVE-2023-1234",
"status": "accepted",
"justification": "This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mac_address: '00:1A:2B:3C:4D:5E',
cve_id: 'CVE-2023-1234',
status: 'accepted',
justification: 'This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.'
})
};
fetch('https://v1.api.altostrat.io/scans/cve/mac-address/cve/status', 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://v1.api.altostrat.io/scans/cve/mac-address/cve/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mac_address' => '00:1A:2B:3C:4D:5E',
'cve_id' => 'CVE-2023-1234',
'status' => 'accepted',
'justification' => 'This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://v1.api.altostrat.io/scans/cve/mac-address/cve/status"
payload := strings.NewReader("{\n \"mac_address\": \"00:1A:2B:3C:4D:5E\",\n \"cve_id\": \"CVE-2023-1234\",\n \"status\": \"accepted\",\n \"justification\": \"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://v1.api.altostrat.io/scans/cve/mac-address/cve/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mac_address\": \"00:1A:2B:3C:4D:5E\",\n \"cve_id\": \"CVE-2023-1234\",\n \"status\": \"accepted\",\n \"justification\": \"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.api.altostrat.io/scans/cve/mac-address/cve/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mac_address\": \"00:1A:2B:3C:4D:5E\",\n \"cve_id\": \"CVE-2023-1234\",\n \"status\": \"accepted\",\n \"justification\": \"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mac_address": "00:1A:2B:3C:4D:5E",
"cve_id": "CVE-2023-1234",
"status": "accepted",
"justification": "Risk accepted due to internal-only service with no external access.",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiration_date": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"message": "CVE status updated successfully"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}Authorizations
Enter your bearer token in the format: Bearer {token}
Body
application/json
The details of the CVE status update.
The MAC address of the affected device.
Example:
"00:1A:2B:3C:4D:5E"
The CVE identifier to update.
Example:
"CVE-2023-1234"
The new status for the vulnerability.
Available options:
accepted, mitigated Example:
"accepted"
A detailed reason for the status change, for audit purposes.
Example:
"This vulnerability is related to a service that is not exposed to the internet and is firewalled internally. Risk is considered low."
Was this page helpful?
⌘I