UpdateVulnerabilityWithLibrary
This method can be used for the following: Update a vulnerability on a project you have access to, by vulnerability identifier (Id) and vulnerability library identifier (Id).
Last updated
{
"projectId": "656158c0965172000f9119e8"
}{
"vulnerabilityLibraryId": "656158c0965172000f9119a8"
}{
"library": "Imported Vulnerabilities"
}{
"asset_library_ids": ["6569608e55bc00bacc67b417", "...", "..."]
}{
"affected_asset": {
"assetId": "...",
"assetName": "..."
}
}[
{
"assetId": "...",
"assetName": "...",
"notes": [
"..."
],
"tags": [
"..."
],
"actioned": false,
"components": [
{
"name": "...",
"notes": [
"..."
],
"actioned": false,
"tags": [
"..."
]
}
]
}
]{
"created": "2021-06-03T23:15:33.008Z"
}{
"priority": "Critical"
}{
"status": "Closed"
}{
"status": "Closed",
"reason": "Risk accepted"
}{
"likelihood_of_exploitation": 10
}{
"steps_to_reproduce": "..."
}{
"cvssv4_vector": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:L"
}{
"tags": ["...", "...", "..."]
}{
"notes": ["...", "...", "..."]
}{
"is_zeroday": true
}{
"is_visible": true
}{
"is_deleted": false
}{
"custom_tags": [{"name": "...", "value": "..."}]
}{
"linked_testcases": ["..."]
}{
"custom_fields": [{"key": "...", "value": "..."}]
}curl -X PUT 'https://localhost:3000/api/ss/vulnerability-with-library/5f976f775345860a3491e075' -H 'Host: localhost:3000' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"vulnerabilityLibraryId": "212193650644186",
"library": "Imported Vulnerabilities",
"priority": "Critical",
"status": "Open",
"likelihood_of_exploitation": 10,
"steps_to_reproduce": "Lorem Ipsum...",
"tags": ["CWE-89", "Injection"],
"notes": ["Lorem Ipsum...", "Lorem Ipsum..."],
"is_zeroday": false,
"is_visible": true,
"is_deleted": false,
"custom_tags": [{"name": "ext_vuln_score", "value": "123"}],
"custom_fields": [{"key": "af_sys_affected_endpoint", "value": "https://batportal.attackforge.com"}],
"linked_testcases": ["66845d85d427ba0010d0681b"]
}'{
"result": {
"result": "Vulnerability Updated"
}
}