Skip to content

fix(suse): use CVSSScoreSets as array#617

Open
DmitriyLewen wants to merge 4 commits intoaquasecurity:mainfrom
DmitriyLewen:fix/suse/cvss-scores-as-array
Open

fix(suse): use CVSSScoreSets as array#617
DmitriyLewen wants to merge 4 commits intoaquasecurity:mainfrom
DmitriyLewen:fix/suse/cvss-scores-as-array

Conversation

@DmitriyLewen
Copy link
Contributor

@DmitriyLewen DmitriyLewen commented Jan 26, 2026

Description

This PR fixes the CVSSScoreSets field type in the SUSE CVRF parser. The field was incorrectly defined as a single ScoreSet struct when it should be a slice []ScoreSet, as CVRF documents can contain multiple CVSS score sets per
vulnerability.

Note:

This PR should only be merged after aquasecurity/vuln-list-update#401 is merged, as both PRs implement the same fix on different sides (vuln-list-update generates the data, trivy-db consumes it).

Changes

  • Changed CVSSScoreSets field type from ScoreSet to []ScoreSet in pkg/vulnsrc/suse-cvrf/types.go
  • Updated test data files to reflect the correct JSON structure:
    • Removed empty CVSSScoreSets: {} objects (which were artifacts of the incorrect single-struct type)
    • Added a test case with populated CVSS scores as an array in openSUSE-SU-2019-2598-1.json

Related PRs

Blocker:

@DmitriyLewen DmitriyLewen self-assigned this Jan 26, 2026
@DmitriyLewen DmitriyLewen marked this pull request as ready for review February 2, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant