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

+6 -5
View File
@@ -684,11 +684,12 @@ Justifications for `not_affected` (OpenVEX): `component_not_present`,
`inline_mitigations_already_exist`. A statement without what its status
requires is refused.
A scan keeps the status current: when a complete CVE check no longer finds an
alert (the component was removed or updated past the fix), it is marked
resolved, and one nobody assessed, or assessed as affected, becomes `fixed`.
A `not_affected` or `fixed` someone stated is never changed by a scan. If the
vulnerability comes back, the scan's `fixed` is withdrawn. A Yocto recipe's
When a complete CVE check no longer finds an alert, it is marked resolved and
keeps its status: a scan never states `fixed` for it, since a vulnerability
can disappear without a fix. An alert nobody assessed stays
`under_investigation` in the exports until someone states its status. A
`fixed` scans stated that way before is not read as a statement. A statement
someone made is never changed by a scan. A Yocto recipe's
`CVE_STATUS` and `CVE:` patches are stated by the scan too (see
[Embedded Linux / Yocto](/guide/yocto#recipe-inventory)), likewise never over a
person's statement.