fix(cve): an alert keeps when it was first found when a scan reports it again (#1041) #1045

Merged
sharang merged 1 commits from fix/cve-first-found into main 2026-11-17 12:59:51 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 0fcef79ea6 fix(cve): an alert keeps when it was first found when a scan reports it again (#1041)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m3s
CI / Check (pull_request) Successful in 21m22s
upsert_reported $set the whole alert a scan built, created_at included,
so every rescan moved each still-reported CVE's 'found' time to its own:
the target's history listed them as new again, and the CVE trend lost
them for the days before. created_at is now written on insert only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-17 13:20:54 +01:00