A rescan of a no-code target lists the CVEs the scan before it found as new #1041

Closed
opened 2026-11-17 12:11:11 +00:00 by sharang · 0 comments
Owner

Found while testing on stage (#1025).

What happens

A target with only a supplier SBOM had two scans: the first one, then a rescan after the SBOM was replaced. The rescan's Verlauf lists lodash's four CVEs (CVE-2021-23337, CVE-2026-4800, CVE-2020-28500, CVE-2025-13465) as neu, with a row "neue Advisory lodash 4.17.20 +4". But the first scan had already found them: the CVE view showed them before the rescan, and the first scan is the baseline.

To find out

Why the first scan's alerts fall into the second scan's window: their created_at after that run's completed_at, or upsert_reported resetting created_at on the rescan. Then fix it so a rescan lists only what it really found new.

Done when

  • A rescan of a no-code target lists as new only CVEs the scan before it did not report.
Found while testing on stage (#1025). ## What happens A target with only a supplier SBOM had two scans: the first one, then a rescan after the SBOM was replaced. The rescan's Verlauf lists lodash's four CVEs (CVE-2021-23337, CVE-2026-4800, CVE-2020-28500, CVE-2025-13465) as **neu**, with a row "neue Advisory lodash 4.17.20 +4". But the first scan had already found them: the CVE view showed them before the rescan, and the first scan is the baseline. ## To find out Why the first scan's alerts fall into the second scan's window: their `created_at` after that run's `completed_at`, or `upsert_reported` resetting `created_at` on the rescan. Then fix it so a rescan lists only what it really found new. ## Done when - [ ] A rescan of a no-code target lists as new only CVEs the scan before it did not report.
sharang added the bug label 2026-11-17 12:11:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#1041