RedHatProductSecurity / cvss-v4-calculator

CVSS v4.0 calculator
https://redhatproductsecurity.github.io/cvss-v4-calculator/
BSD 2-Clause "Simplified" License
32 stars 22 forks source link

Invalid vector validation #46

Closed pandatix closed 9 months ago

pandatix commented 9 months ago

Let's take the following invalid vector: /AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N (missing CVSS v4.0 prefix). Due to missing prefix check, the current implementation validate the previous example.

The fix is to check the vector string begins by CVSS:4.0.