Skip to content

Optionally have overall CVSS score in severity #495

@djc

Description

@djc

severity is currently defined as

{
	"severity": [ {
		"type": string,
		"score": string
	} ]
}

I'm currently implementing support for showing RustSec advisories on crates.io, and we'd like to show the overall CVSS score on crates.io. We have a Rust cvss crate which calculates these, but so far we've been able to get by with doing this entirely in the frontend. I think it might be nice to allow severity objects to contain an optional overall key containing the numerical aggregate score matching the score vector.

Would a PR in this direction be accepted? Should the value take the form of a string or a number in JSON?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions