security-advisories icon indicating copy to clipboard operation
security-advisories copied to clipboard

[Discussion] Adopt OSV unified vulnerability schema for open source

Open jaylinski opened this issue 3 years ago • 1 comments

Introduction

Google recently published it's OSV unified vulnerability schema for open source: https://security.googleblog.com/2021/06/announcing-unified-vulnerability-schema.html

OSV is a vulnerability database and triage infrastructure for open source projects aimed at helping both open source maintainers and consumers of open source.

For open source maintainers, OSV's automation helps reduce the burden of triage. Each vulnerability undergoes automated bisection and impact analysis to determine precise affected commit and version ranges.

For open source consumers, OSV provides an API that lets users of these projects query whether or not their versions are impacted.

Discussion

It like the idea of having a unified schema for open source vulnerabilities, so I think it would be nice if this repository could adopt the new OSV schema.

I see the following benefits:

  • No more discussion about the format (since it now follows a standard)
    Relates to #537, #496, #465
  • The unified schema will make it easy for other libraries to use this repository as a data-feed, since it follows a schema also used for other languages
    Example: https://github.com/pypa/advisory-db/blob/main/vulns/aiohttp/PYSEC-2021-76.yaml
  • This vulnerability feed can be made accessible via https://osv.dev/ API

I'm looking forward for your input. :octocat:

The format-change should be pretty straight forward. I'll open a PR if this proposal receives positive feedback.

jaylinski avatar Jun 27 '21 17:06 jaylinski

The schema has also stabilized now per https://ossf.github.io/osv-schema/#status---2021-09-08

westonsteimel avatar Oct 24 '21 10:10 westonsteimel