Skip to content

fix: prevent 0001-01-01 published dates in Debian converter#5149

Merged
jess-lowe merged 2 commits intogoogle:masterfrom
jess-lowe:fix-debian-cve-published-date-785349618750554831
Mar 30, 2026
Merged

fix: prevent 0001-01-01 published dates in Debian converter#5149
jess-lowe merged 2 commits intogoogle:masterfrom
jess-lowe:fix-debian-cve-published-date-785349618750554831

Conversation

@jess-lowe
Copy link
Copy Markdown
Contributor

@jess-lowe jess-lowe commented Mar 30, 2026

Modify vulnfeeds/cmd/converters/debian/main.go to only set the Published field if the associated NVD CVE published time is not zero. This avoids generating 0001-01-01T00:00:00Z dates which hide records from the /list page and trigger schema validation warnings.

Some of these cases don't even have valid upstream CVEs: #4694, which is weird. Maybe we shouldn't be publishing them at all?

Making this PR anyway to catch the cases that should be valid.

this should close #4694

google-labs-jules bot and others added 2 commits March 30, 2026 01:10
Modify `vulnfeeds/cmd/converters/debian/main.go` to only set the `Published` field if the associated NVD CVE published time is not zero. This avoids generating `0001-01-01T00:00:00Z` dates which hide records from the /list page and trigger schema validation warnings.

Co-authored-by: jess-lowe <86962800+jess-lowe@users.noreply.github.com>
@jess-lowe jess-lowe requested review from a team and michaelkedar March 30, 2026 01:49
Copy link
Copy Markdown
Member

@michaelkedar michaelkedar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@jess-lowe jess-lowe merged commit bd93a96 into google:master Mar 30, 2026
21 checks passed
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.

DEBIAN-CVE records with published date 01/01/0001

2 participants