Skip to content

Commit

Permalink
Merge pull request #47 from pandatix/fix/cvssv4-prefix
Browse files Browse the repository at this point in the history
Fix check CVSS v4.0 prefix
  • Loading branch information
skontar authored Dec 1, 2023
2 parents 201eb28 + 9c75640 commit 8791cb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ const app = Vue.createApp({
this.resetSelected()
metrics = vector.split("/")
// Remove hash + CVSS v4.0 prefix
prefix = metrics[0].slice(1);
if (prefix != "CVSS:4.0") {
console.log("Error invalid vector, missing CVSS v4.0 prefix")
return
}
metrics.shift()

// Ensure compliance first
Expand Down

0 comments on commit 8791cb2

Please sign in to comment.