RedHatProductSecurity / cvss

CVSS2/3/4 library with interactive calculator for Python 2 and Python 3
GNU Lesser General Public License v3.0
79 stars 28 forks source link

Result from interactive calculator is missing mandatory prefix for CVSSv3 #12

Closed vkrizan closed 7 years ago

vkrizan commented 7 years ago

Cannot use interactive calculator for CVSSv3. ask_interactively returns vector without mandatory "CVSS:3.0" prefix. That results in CVSS3MalformedError (unable to feed the result to CVSS3 constructor):

cvss.exceptions.CVSS3MalformedError: Malformed CVSS3 vector "AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:H" is missing mandatory prefix
skontar commented 7 years ago

Fixed in 8c338ab3f6cf1422357c2bdd9b266c7caae7171b.