feat(vex): CSAF 2.0 VEX advisory draft (#498, 3/4) #510

Merged
sharang merged 1 commits from feat/498-csaf into main 2026-10-06 14:38:43 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 c3e4862c92 feat(vex): CSAF 2.0 VEX advisory draft (#498, 3/4)
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 8m22s
- compliance_core::csaf_docs: a csaf_vex advisory from the same alerts and
  statements as the OpenVEX/CycloneDX VEX. The target is the product, each
  component default_component_of it (with purl). affected -> known_affected
  with a remediation (vendor_fix when a fixed version is known, else
  mitigation, carrying the action statement); not_affected ->
  known_not_affected with the justification as flag and the impact statement
  as threat; one vulnerability per CVE (GHSA alerts with a CVE alias merge).
  Always a draft: tracking status draft, TLP:AMBER, lang from the UI, and the
  note "Draft, not published: check publisher and statements before
  release."
- Publisher: the workspace; namespace from ?namespace= (http(s) URL, else
  400) or the placeholder https://example.invalid/<workspace>.
- GET /api/v1/targets/{id}/csaf?namespace=&lang=; csaf-vex.json in the
  evidence pack. The VEX export's loading is shared with it.
- Dashboard: web-address field and "CSAF-Entwurf herunterladen" in the VEX
  card.
- Validation: vendored OASIS CSAF 2.0 schema and FIRST CVSS schemas (from
  gocsaf v3.6.0); an #[ignore] test runs gocsaf csaf_validator (Apache-2.0)
  and BSI csaf-validator-lib (MIT) mandatory and optional tests: no errors.
- Docs DE/EN (CSAF section; publish as WHITE/GREEN), test plan check 28.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-06 16:29:20 +02:00