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.
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
.