Skip to content

Incorrect CVSS scores in GitLab v2 advisories #2330

@keshav-space

Description

@keshav-space

Rather than storing None, the pipeline should compute and store valid CVSS scores from CVSS vector using Cvssv2ScoringSystem.compute and Cvssv3ScoringSystem.compute.

VulnerabilitySeverity(
system=SCORING_SYSTEMS["cvssv2"],
scoring_elements=cvss_v2,
value=None,
url=advisory_url,
)
)
if cvss_v3:
scoring_system = SCORING_SYSTEMS["cvssv3"]
if cvss_v3.startswith("CVSS:3.1/"):
scoring_system = SCORING_SYSTEMS["cvssv3.1"]
severities.append(
VulnerabilitySeverity(
system=scoring_system,
scoring_elements=cvss_v3,
value=None,
url=advisory_url,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions