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
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:
1 parent
d274c68ecb
commit
bc5a5eed69
11 files changed
+1253
-110
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user