feat(cvss): FIRST's formulas from Red Hat's cvss library; 4.0 scored, stated scores checked (D12) #514
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 366 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.353
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #514"
general
weight: 0.35
chubirka
@smith-xyz Here's the migration to Red Hat's
cvsslibrary you suggested (multi-feed CVSS plan, decision D12). One part needs your review as a core maintainer: it widens themodelsthird-party allowlist forcvss, confined to one module.What it does
cvss3.6 (LGPLv3+, used unmodified as a library, pinned exactly inpyproject.toml). The library also scores CVSS 4.0.score_of).cvss_base_scorekeeps its 3.x-only float contract forAdvisoryRecord.cvss_score.Layering (needs review)
tests/v1/test_layering.py:cvssjoins themodelsallowlist.tests/v1/test_architecture.py:test_only_the_cvss_model_imports_the_cvss_libraryconfines the import tomodels/cvss.py, the same one-module pattern astree_sitter,jwtandtraust_ledger.cvss_base_scoremoves frommodels/dependencies.pyintomodels/cvss.py, somodels/cvss.pyno longer importsdependencies(the direction reverses).The reasoning: FIRST's formula is a pure computation on one value, which is what
modelsowns. A provider is for things outside the process.Evidence before replacing core's formula
| Check | Result |
|---|---|
| Every CVSS 3.0/3.1 base vector (2,592 each), core's formula against the library | 5,184 / 5,184 identical |
| Two weeks of NVD records (2026-11-01 to 11-15, 2,000 CVEs), stated 4.0 score against the library | 730 / 730 match |
| Same records, stated 3.x scores | 1,726 / 1,726 match |
The new 4.0 test vectors include two published CNA statements with threat and supplemental metrics (9.3 with
E:P, 2.3 withE:U). They were scored outside core and outside this library, so the tests don't assert the library against itself.Verification
make test: 14,942 passed. Lint and the ratchet are clean.GHSA-223j-4rm8-mrmf(GitHub-reviewed, npmnext) states only a 4.0 vector. On currentdevelopmentit scores None. With this change it scores 1.7, which is GitHub's own published 4.0 score for that advisory (gh api /advisories/GHSA-223j-4rm8-mrmf).GHSA-jfh8-c2jp-5v3q(3.1) stays at 10.0.Licensing: the LGPL was accepted for this library (owner, 2026-11-17). traust's
docs/external-dependencies.mdlicence row lands with the traust pin bump.🤖 Generated with Claude Code