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 21aeb75 commit e204726Copy full SHA for e204726
cyclonedx/model/vulnerability.py
@@ -611,7 +611,7 @@ def get_from_vector(vector: str) -> 'VulnerabilityScoreSource':
611
Always returns an instance of `VulnerabilityScoreSource`. `VulnerabilityScoreSource.OTHER` is
612
returned if the scheme is not obvious or known to us.
613
"""
614
- if vector.startswith('CVSS:4.0'):
+ if vector.startswith('CVSS:4.'):
615
return VulnerabilityScoreSource.CVSS_V4
616
if vector.startswith('CVSS:3.1'):
617
return VulnerabilityScoreSource.CVSS_V3_1
0 commit comments