fix(vex): a CVE a scan no longer finds is not stated fixed (#994) #1015

Merged
sharang merged 2 commits from fix/vex-not-from-scan into main 2026-11-27 22:23:04 +00:00
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 fbc1139626 fix(vex): an issue whose CVE is gone stays open, told so once (#994)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m27s
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 / Check (pull_request) Successful in 22m15s
A complete scan that no longer finds a CVE closed its tracker issue. A CVE
can disappear without a fix, so the issue now stays open and gets one
comment saying the scan no longer finds it and that a person checks and
closes it (in Prüfwerk with the VEX status "Behoben" and a reason).
TrackerIssue::gone_noted_at keeps it to one comment while the CVE stays
gone; when the CVE is found again it is cleared, so a later disappearance
is told again.

Docs (managed git, issues) say the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-27 23:00:03 +01:00
Sharang ParnerkarandClaude Opus 5.5 ffcd555324 fix(vex): a CVE a scan no longer finds is not stated fixed (#994)
A complete scan that no longer finds a CVE used to state VEX `fixed`
(Weg A), and the exports read `resolved_at` without a statement as
`fixed` (Weg B). A CVE can disappear without a fix, so neither holds.

- resolve_gone only sets resolved_at; it states nothing.
- CveAlert::statement() ignores the `fixed` scans inferred that way
  (by_scan, fixed, no reason given); a Yocto recipe's statement gives its
  reason and still counts. status_of, is_resolved_by_vex, the exports,
  the CVE groups and the ENISA drafts all read through it.
- status_of: no statement means under_investigation, gone or not.
- ENISA: the final report is dated only by a person's `fixed`; an
  exploited CVE that is merely gone reads "no longer found", not fixed.
- The CVE list (API and MCP) leaves the inferred statements out, so the
  dashboard no longer shows them.
- scripts/vex-994-cleanup.js counts the stored ones and removes them only
  with apply=true; dry run by default, counts only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-27 23:00:03 +01:00