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
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-27 20:18:29 +01:00
1 parent f5848f7bad
commit 63eebef021
16 files changed
+380 -130

No files matched your search

+12 -9
View File
@@ -58,11 +58,13 @@ Rollen mit Lesezugriff sehen die Aussagen, können aber nicht bewerten.
## Was die Prüfung ändert
Findet eine vollständige Prüfung eine Schwachstelle nicht mehr (Komponente
entfernt oder aktualisiert), wird sie als behoben markiert; „Aussage von“
zeigt dann **Prüfung**. Eine Aussage „Nicht betroffen“ oder „Behoben“, die
eine Person gemacht hat, ändert die Prüfung nie. Taucht die Schwachstelle
wieder auf, nimmt die Prüfung ihr „Behoben“ zurück.
Findet eine vollständige Prüfung eine Schwachstelle nicht mehr, gilt sie
nicht mehr als offen; ihre Bewertung bleibt, wie sie ist. Die Prüfung setzt
dafür nie „Behoben“: Eine Schwachstelle kann auch ohne Behebung
verschwinden, etwa durch andere Scandaten, eine unvollständige Erfassung oder
eine geänderte Zuordnung. „Behoben“ sagt nur eine Person. Ein „Behoben“, das
die Prüfung früher so gesetzt hat, gilt nicht als Aussage. Eine Aussage, die
eine Person gemacht hat, ändert die Prüfung nie.
Eine Schwachstelle mit „Nicht betroffen“ oder „Behoben“ (von einer Person,
der Prüfung oder aus einem importierten VEX-Dokument) löst keine
@@ -151,10 +153,11 @@ die CVE dazu) oder sie mehrere Komponenten betrifft. Der Entwurf
Den Zeitpunkt, ab dem die Fristen laufen, können Sie über die API angeben
(`aware_at`); ohne ihn gilt die erste Prüfung, die die Ausnutzung fand. Ist
eine behobene Schwachstelle bekannt, trägt der Entwurf das Datum der Behebung
(Feld v22) und die Frist des Abschlussberichts. Ist sie als „Nicht
betroffen“ bewertet, oder wurde sie behoben, bevor eine Prüfung ihre
Ausnutzung fand, gibt es keinen Entwurf. Aktiv ausgenutzte Schwachstellen stehen als
eine Schwachstelle als „Behoben“ bewertet, trägt der Entwurf das Datum dieser
Aussage (Feld v22) und die Frist des Abschlussberichts. Findet die Prüfung sie
nur nicht mehr, bleibt beides offen, bis jemand „Behoben“ sagt. Ist sie als
„Nicht betroffen“ bewertet, oder wurde sie behoben oder nicht mehr gefunden,
bevor eine Prüfung ihre Ausnutzung fand, gibt es keinen Entwurf. Aktiv ausgenutzte Schwachstellen stehen als
`enisa-drafts.json` auch im Nachweispaket. Ändert ENISA das Glossar,
passen wir die Felder an; die Version im Entwurf zeigt, nach welchem er
erstellt wurde.