Skip to content

Commit

Permalink
vuln2json.pl: remove the fake CVSS
Browse files Browse the repository at this point in the history
It did not comply with the format anyway so just drop it.

Ref: #240
  • Loading branch information
bagder committed May 3, 2023
1 parent 1bf8f77 commit fe08e62
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/vuln2json.pl
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,11 @@ sub inclusive {
" }\n".
" ],\n";
if($severity) {
my $cvss = "1.0"; # default low
$cvss = "4.0" if($severity eq "Medium");
$cvss = "7.0" if($severity eq "High");
$cvss = "9.0" if($severity eq "Critical");
push @single,
" \"severity\": [\n".
" {\n".
" \"type\": \"basic\",\n".
" \"score\": \"$severity\"\n".
" },\n".
" {\n".
" \"type\": \"CVSS_V3\",\n".
" \"score\": \"$cvss\"\n".
" }\n".
" ],\n";
}
Expand Down

0 comments on commit fe08e62

Please sign in to comment.