Skip to content

Commit e204726

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 21aeb75 commit e204726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/model/vulnerability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def get_from_vector(vector: str) -> 'VulnerabilityScoreSource':
611611
Always returns an instance of `VulnerabilityScoreSource`. `VulnerabilityScoreSource.OTHER` is
612612
returned if the scheme is not obvious or known to us.
613613
"""
614-
if vector.startswith('CVSS:4.0'):
614+
if vector.startswith('CVSS:4.'):
615615
return VulnerabilityScoreSource.CVSS_V4
616616
if vector.startswith('CVSS:3.1'):
617617
return VulnerabilityScoreSource.CVSS_V3_1

0 commit comments

Comments
 (0)