Skip to content

fix(vulnfeeds): ignore empty reference URLs in nvd conversion#5013

Open
jess-lowe wants to merge 1 commit intogoogle:masterfrom
jess-lowe:fix-nvd-blank-references-11518456029009125851
Open

fix(vulnfeeds): ignore empty reference URLs in nvd conversion#5013
jess-lowe wants to merge 1 commit intogoogle:masterfrom
jess-lowe:fix-nvd-blank-references-11518456029009125851

Conversation

@jess-lowe
Copy link
Contributor

Update ClassifyReferences in vulnfeeds/vulns/vulns.go to explicitly skip references that have a blank/empty URL before categorizing them. This prevents the output from containing blank reference objects that lack a valid URL. Also added a test case in vulns_test.go to verify this behavior.

Update `ClassifyReferences` in `vulnfeeds/vulns/vulns.go` to explicitly skip
references that have a blank/empty URL before categorizing them. This prevents
the output from containing blank reference objects that lack a valid URL.
Also added a test case in `vulns_test.go` to verify this behavior.

Co-authored-by: jess-lowe <86962800+jess-lowe@users.noreply.github.com>
@jess-lowe jess-lowe requested a review from Ly-Joey March 10, 2026 23:08
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.

2 participants