Skip to content

Commit

Permalink
feat(advisor): Add resolution reason for incorrect vulnerabilities
Browse files Browse the repository at this point in the history
In some cases CVEs are deemed to not be valid vulnerabilities, see [1]
for an example. ORT's advisors will still report this CVE with no
correct way to resolve the vulnerability.
Add a separate resolution reason for this case.

[1]: https://security.snyk.io/vuln/SNYK-JAVA-IONETTY-1042268

Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
  • Loading branch information
MarcelBochtler committed Aug 26, 2024
1 parent 7ad4bfe commit 26a0401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions integrations/schemas/resolutions-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"INEFFECTIVE_VULNERABILITY",
"INVALID_MATCH_VULNERABILITY",
"MITIGATED_VULNERABILITY",
"NOT_A_VULNERABILITY",
"WILL_NOT_FIX_VULNERABILITY",
"WORKAROUND_FOR_VULNERABILITY"
]
Expand Down
6 changes: 6 additions & 0 deletions model/src/main/kotlin/config/VulnerabilityResolutionReason.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ enum class VulnerabilityResolutionReason {
*/
MITIGATED_VULNERABILITY,

/**
* The vulnerability was reported, and got a CVE assigned. However, the CVE was later deemed to not be a
* vulnerability.
*/
NOT_A_VULNERABILITY,

/**
* This vulnerability will never be fixed, e.g., because the package which is affected is orphaned,
* declared end-of-life, or otherwise deprecated.
Expand Down

0 comments on commit 26a0401

Please sign in to comment.