We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e204726 commit 63b6305Copy full SHA for 63b6305
cyclonedx/model/vulnerability.py
@@ -613,9 +613,9 @@ def get_from_vector(vector: str) -> 'VulnerabilityScoreSource':
613
"""
614
if vector.startswith('CVSS:4.'):
615
return VulnerabilityScoreSource.CVSS_V4
616
- if vector.startswith('CVSS:3.1'):
617
- return VulnerabilityScoreSource.CVSS_V3_1
618
if vector.startswith('CVSS:3.'):
+ if vector.startswith('CVSS:3.1'):
+ return VulnerabilityScoreSource.CVSS_V3_1
619
return VulnerabilityScoreSource.CVSS_V3
620
if vector.startswith('CVSS:2.'):
621
return VulnerabilityScoreSource.CVSS_V2
0 commit comments