RedHatProductSecurity / cvss-v4-calculator

CVSS v4.0 calculator

Home Page:https://redhatproductsecurity.github.io/cvss-v4-calculator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid vector validation

pandatix opened this issue · comments

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.