fix(vex): keep the alert's purl for components that left the SBOM
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 / Check (pull_request) Successful in 11m16s

A resolved CVE alert (its component updated past the fix) was exported
as pkg:generic/<name>@<version> in OpenVEX, CycloneDX VEX, the CSAF VEX
draft and the evidence pack, because the exporters looked the purl up in
the current SBOM. CveAlert now stores the purl of its component (OSV,
NVD/CPE incl. CODESYS and embedded, CSAF matching), a rescan backfills it
on stored alerts (scan upsert and the hourly CVE monitor), and the
exporters use it before the SBOM lookup and the generic fallback.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-08 23:21:51 +02:00
1 parent e1bf9e861c
commit 3a07768024
11 files changed
+148 -19

No files matched your search

+5 -1
View File
@@ -262,7 +262,11 @@ vulnerability comes back, the scan's `fixed` is withdrawn.
The statements are exported per target as **OpenVEX 0.2.0** and as
**CycloneDX 1.6 VEX** (the SBOM with each vulnerability's analysis), both
checked against their official schemas, and are part of the evidence pack
(`vex.openvex.json`, `vex.cdx.json`). CycloneDX names the statuses
(`vex.openvex.json`, `vex.cdx.json`). Each statement names the component by
the purl it had when the alert was found, so a `fixed` statement still
matches the SBOM version that contained the component after it was updated
or removed. Alerts resolved before Prüfwerk recorded that purl name it
`pkg:generic/<name>@<version>`. CycloneDX names the statuses
differently:
| OpenVEX | CycloneDX `analysis.state` / `justification` |
+2 -1
View File
@@ -62,7 +62,8 @@ and the API: see [SBOM](./sbom.md#vex-the-status-of-each-vulnerability).
The draft
- names the target as the product and each affected component as part of it
(with its purl);
(with its purl; a fixed component no longer in the SBOM with the purl it
had when the alert was found);
- carries every statement: "Affected" with your action statement as the
remediation, "Not affected" with its justification and statement, "Under
investigation" and "Fixed";
+2 -1
View File
@@ -65,7 +65,8 @@ VEX-Advisory (`csaf_vex`), dem Format, in dem Hersteller und CERTs
Schwachstellen veröffentlichen. Der Entwurf
- nennt das Prüfobjekt als Produkt und jede betroffene Komponente als Teil
davon (mit purl);
davon (mit purl; eine behobene Komponente, die nicht mehr in der SBOM
steht, mit der purl, die sie beim Fund hatte);
- übernimmt jede Aussage: „Betroffen“ mit Ihrer Handlungsanweisung als
Abhilfe, „Nicht betroffen“ mit Begründung und Freitext, „In Prüfung“ und
„Behoben“;