Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions vulnfeeds/cmd/combine-to-osv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ func combineIntoOSV(cve5osv map[models.CVEID]*osvschema.Vulnerability, nvdosv ma
// combineTwoOSVRecords takes two osv records and combines them into one
func combineTwoOSVRecords(cve5 *osvschema.Vulnerability, nvd *osvschema.Vulnerability) *osvschema.Vulnerability {
baseOSV := cve5
if baseOSV.GetDetails() == "" && nvd.GetDetails() != "" {
baseOSV.Details = nvd.GetDetails()
}
if baseOSV.GetSummary() == "" && nvd.GetSummary() != "" {
baseOSV.Summary = nvd.GetSummary()
}
combinedAffected := pickAffectedInformation(cve5.GetAffected(), nvd.GetAffected())

baseOSV.Affected = combinedAffected
Expand Down
2 changes: 1 addition & 1 deletion vulnfeeds/models/cve.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ type CVE5 struct {

func EnglishDescription(descriptions []LangString) string {
for _, desc := range descriptions {
if desc.Lang == "en" {
if desc.Lang == "en" || strings.HasPrefix(desc.Lang, "en-") {
return desc.Value
}
}
Expand Down
Loading