Lower CVE-2025-0938 spot-check threshold to 1 (#45056)

This commit is contained in:
Tim Lee
2026-05-08 13:18:53 -06:00
committed by GitHub
parent 0ce19b4578
commit f2f0f703a4
+6 -1
View File
@@ -50,7 +50,12 @@ func checkNVDVulnerabilities(vulnPath string, logger *slog.Logger) {
if !ok {
panic("failed to cast CVE-2025-0938 to a Vuln")
}
if len(vulnEntry.Schema().Configurations.Nodes) < 1 || len(vulnEntry.Schema().Configurations.Nodes[0].CPEMatch) < 6 {
// NVD lists CVE-2025-0938 as Deferred with no configurations, so any CPE match
// here proves VulnCheck enrichment ran. The threshold was previously the historical
// row count (6), which broke the daily release pipeline whenever VulnCheck dropped
// a row. Floor of 1 catches a complete enrichment failure for this CVE without
// breaking on per-CVE drift.
if len(vulnEntry.Schema().Configurations.Nodes) < 1 || len(vulnEntry.Schema().Configurations.Nodes[0].CPEMatch) < 1 {
panic(errors.New("enriched vulnerability spot-check failed for Python on CVE-2025-0938"))
}