Skip to content

Distinguish missing CVSS from zero in stored reports and exports - #15

Merged
cynkai merged 3 commits into
mainfrom
codex/report-missing-finding-scores
Dec 1, 2026
Merged

cynkai merged 3 commits into
mainfrom
codex/report-missing-finding-scores

Conversation

@cynkai

@cynkai cynkai commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Changes

A stored finding without a CVSS column previously printed as zero in the PDF and could prevent the dashboard from offering CSV, JSON or PDF exports. Missing cells also appeared as nan (nan). The index, details and dashboard now distinguish missing measurements from real zeroes. Numeric strings are ranked by value and unranked entries retain their input order.

The JSON summary keeps the legacy numeric severity fallback for existing clients and identifies it with avg_cvss_source. The displayed CVSS average uses recorded scores from evaluated rows. A CVSS comparison requires measurements from both runs. The risk chart identifies its plotted score column.

Verification

  • Produced PDFs from neutral stored rows and reopened the results. A score of 4.2 without a rating, a measured zero rated NONE, and a missing score now read as 4.2, 0.0 (NONE), and Unavailable. The measured mean was 2.1.
  • Verified the legacy severity-only PDF and rendered an index with neither score column. Inspected the rendered index and detail pages.
  • Exercised stored results through Streamlit, including CSV, JSON and PDF downloads. Both published reference summaries still match their source data.
  • Full pinned local suite passed (233 tests). Pyflakes and the whitespace check passed.

@cynkai
cynkai merged commit a4e9edc into main Dec 1, 2026
2 checks passed
@cynkai
cynkai deleted the codex/report-missing-finding-scores branch December 1, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant