Skip to content

Commit 2cff35d

Browse files
committed
fix(vuln-scan): filter out CVSS v4 scores, prefer v3.x only
1 parent 1ab4090 commit 2cff35d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/main/java/org/svip/api/services/VulnerabilityScanService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,10 @@ private void addCvssRating(ArrayNode ratingsArray, JsonNode cvss) {
626626
}
627627

628628
String method = cvss.path("version").asText("");
629+
// Skip CVSS v4.0 scores; prefer v3.x only
630+
if (method.startsWith("4.")) {
631+
return;
632+
}
629633
if (!method.isEmpty()) {
630634
rating.put("method", method);
631635
}

0 commit comments

Comments
 (0)