Skip to content

fix(advisories): severity from the CVSS vector when the advisory carries no label - #321

Merged
sweepies merged 3 commits into
mainfrom
fix/advisory-cvss-severity
Nov 14, 2026
Merged

sweepies merged 3 commits into
mainfrom
fix/advisory-cvss-severity

Conversation

@sweepies

@sweepies sweepies commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

RustSec, PyPA, Go and other OSV advisories without a database_specific.severity label showed as unknown, even when they carry a CVSS vector. RUSTSEC-2023-0071 (rsa) is CVSS 3.1 5.9, for example.

Behaviour

  • Label first: a database's own label still wins. Without one, the severity comes from the advisory's CVSS_V4, CVSS_V3 or CVSS_V2 vector, scored by RustSec's cvss crate (Apache-2.0 OR MIT). The newest version wins, and among several vectors of that version the most severe wins.
  • Bands: low 0.1–3.9, moderate 4.0–6.9, high 7.0–8.9, critical 9.0–10.0. v2 uses NIST's bands, so it has no critical. A vector that doesn't parse, or a score of 0.0, stays unknown.
  • What it affects: severity is display only. It shows in the terminal's vulnerability list, the dashboard's order and labels, PR tables and the report's advisories[].severity. It doesn't drive which updates are proposed, labels or security.apply. Advisories that now have a severity move up the dashboard. See the new Severity section in guide/security.md.
  • Terminal list: it shows one line per package, version and advisory, with a column listing every manifest that declares it. rsa was listed twice because two manifests declare it.

Review fixes

  • Labels: a non-CVSS severity entry whose score is a severity word (Ubuntu's medium) counts as the database's own label, so it beats the vector.
  • Zero scores: a score of 0.0 is unrated in every CVSS version.
  • Bad entries: malformed severity entries are skipped, so one bad entry can no longer fail every advisory lookup.
  • Terminal: the manifest column names up to two manifests, then says "N manifests", and truncates in narrow terminals.
  • Docs: Go advisories stay unrated, since the Go database publishes no CVSS.

Notes

  • The osv-advisory cached state goes to v2, because a stored advisory now holds the computed severity.
  • The three CLI output snapshots gain the manifest column.

View guided diff Turn on auto-fix

@socket-security

socket-security Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​cvss@​3.0.010010093100100

View full report

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula 16bb97b Commit Preview URL

Branch Preview URL
Nov 14 2026, 08:02 AM

@sweepies
sweepies force-pushed the fix/advisory-cvss-severity branch from 3248418 to 16bb97b Compare November 14, 2026 08:01
@sweepies
sweepies merged commit b3a2b8b into main Nov 14, 2026
13 checks passed
@sweepies
sweepies deleted the fix/advisory-cvss-severity branch November 14, 2026 08:12
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 14, 2026
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