feat(cve): group CVEs by package with one VEX decision per group (#949)
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 4m12s
CI / Check (pull_request) Successful in 18m33s

The target's open CVE alerts are grouped by component (package, version,
purl) in compliance-core: the highest fixed version the advisories name
above the component's own, how many CVEs that update fixes, the CVEs per
severity (a CVE in several alerts counts once), KEV and the highest EPSS.

Agent:
- GET /api/v1/targets/{id}/cve-groups lists the groups, most severe first.
- PATCH /api/v1/targets/{id}/cve-groups/vex states one VEX status on every
  open alert of a component: one statement per alert with the validation,
  author and time of PATCH /api/v1/cves/{id}/vex, so the exports and the
  CVE issue auto-close treat them as single decisions. Settled alerts keep
  their statements; 404 when the component has no open alert.

Dashboard: the target's VEX section opens grouped ("Gruppiert") with one
card per component ("vite 5.4.21 -> 8.3.3 behebt 9 CVEs (1 hoch, ...)"),
"Nicht betroffen (alle N)" opening the same statement editor as
"Bewerten", and the rows on demand; "Einzeln" keeps the full list. The
severity badge of a row now uses the same rating as the group counts
(GitHub's MODERATE reads as medium, a CVSS-only alert gets its badge).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-10 11:53:20 +01:00
1 parent d274c68ecb
commit bc5a5eed69
11 files changed
+1253 -110

No files matched your search

+6
View File
@@ -424,6 +424,12 @@ differently:
API: `GET /api/v1/targets/{id}/cves` lists the alerts with their statements,
`PATCH /api/v1/cves/{id}/vex` sets one
(`{"status": "not_affected", "justification": "…", "impact_statement": "…"}`),
`GET /api/v1/targets/{id}/cve-groups` lists the open alerts grouped by component
(`package`, `version`, `purl`, `fix_version`, `fixable`, `counts` per severity,
`kev`, `epss_max`, `cve_ids`, `alert_ids`), and
`PATCH /api/v1/targets/{id}/cve-groups/vex` states one status on every open
alert of a component (the group's `package`, `version` and `purl` beside the
statement's fields; one statement per alert, validated as a single one),
`GET /api/v1/targets/{id}/vex?format=openvex|cyclonedx` downloads the document,
`GET /api/v1/targets/{id}/csaf?namespace=<publisher URL>&lang=de|en` the same
statements as a CSAF 2.0 VEX advisory (a TLP:AMBER draft; see
+14 -2
View File
@@ -11,9 +11,14 @@ vulnerabilities and inform users; VEX is the usual format for it.
## Where
On a target's page, section **Vulnerabilities and VEX**. The table shows each
On a target's page, section **Vulnerabilities and VEX**. The **Grouped** view
(the default) gathers the open vulnerabilities per component and version and
says what an update does, e.g. "vite 5.4.21 → 8.3.3 fixes 9 CVEs (1 high,
1 low, 7 info)": the highest version the advisories name as fixed, and the
vulnerabilities per severity. **KEV** and the highest EPSS score stand beside
it; **Show CVEs** expands the rows. The **One by one** view shows each
vulnerability with its component, severity, status and who made the
statement.
statement, including those already assessed or fixed.
## Statuses
@@ -39,6 +44,13 @@ Justifications for "Not affected":
disabled and a note says what is missing.
3. **Save**. The "Stated by" column shows your name.
For every open vulnerability of a component at once: click **Not affected
(all N)** on the group, give a justification or a statement, **Save**. Each
vulnerability of the group gets the same statement, as if you had assessed it
on its own; the exports and the closing of tickets behave the same. Those
stated "Not affected" or "Fixed" are not in the group and keep their
statements; an "Affected" or "Under investigation" statement is replaced.
Read-only roles see the statements but cannot assess.
## What a scan changes
+16 -2
View File
@@ -13,8 +13,14 @@ Format dafür.
## Wo
Auf der Seite eines Prüfobjekts, Abschnitt **Schwachstellen und VEX**. Die
Tabelle zeigt jede Schwachstelle mit Komponente, Schweregrad, Status und wer
die Aussage gemacht hat.
Ansicht **Gruppiert** (Standard) fasst die offenen Schwachstellen je
Komponente und Version zusammen und sagt, was ein Update bewirkt, z. B.
„vite 5.4.21 → 8.3.3 behebt 9 CVEs (1 hoch, 1 niedrig, 7 info)“: die
höchste Version, die die Advisories als behoben nennen, und die Schwachstellen
je Schweregrad. **KEV** und der höchste EPSS-Wert stehen daneben; **CVEs
anzeigen** klappt die Zeilen auf. Die Ansicht **Einzeln** zeigt jede
Schwachstelle mit Komponente, Schweregrad, Status und wer die Aussage gemacht
hat, auch die bereits bewerteten und behobenen.
## Status
@@ -40,6 +46,14 @@ Begründungen für „Nicht betroffen“:
**Speichern** gesperrt und ein Hinweis sagt, was fehlt.
3. **Speichern**. Die Spalte „Aussage von“ zeigt Ihren Namen.
Für alle offenen Schwachstellen einer Komponente auf einmal: in der Gruppe auf
**Nicht betroffen (alle N)** klicken, Begründung oder Freitext angeben,
**Speichern**. Jede Schwachstelle der Gruppe erhält dieselbe Aussage, als
hätten Sie sie einzeln bewertet; Exporte und das Schließen der Tickets
verhalten sich gleich. Als „Nicht betroffen“ oder „Behoben“ bewertete
Schwachstellen gehören nicht zur Gruppe und behalten ihre Aussage; eine
Aussage „Betroffen“ oder „In Prüfung“ wird ersetzt.
Rollen mit Lesezugriff sehen die Aussagen, können aber nicht bewerten.
## Was die Prüfung ändert