Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: Move the severity from Vulnerability into the respective Affected #545

Closed
fviernau opened this issue Jul 20, 2022 · 2 comments
Closed

Comments

@fviernau
Copy link

fviernau commented Jul 20, 2022

Vulnerability has the arrays severity and affected. I couldn't find the documentation for these arrays, but my guess is that
the i-th severity entry corresponds to the package referenced by the i-th entry in affected.

Can you confirm that above assumption is true?
If so, would it make sense to change the schema as follows?

from:

Vulernability (
  ...  
  severity[]
  affected[]
  ...
)

to:

Vulernability (
  ...  
  affected[]
  ...
)

Affected(
  ...
  severity
  ...
)
@oliverchang
Copy link
Collaborator

Hi!

This assumption is not correct -- the severity field is an array only to account for multiple scoring algorithms (currently only CVSS is supported).

I think we need some clarification on the spec (https://ossf.github.io/osv-schema/#severity-field) here?

@another-rex
Copy link
Contributor

Close since moved over to osv-schema

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

No branches or pull requests

3 participants