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

lib/advisories: support multiple packages per advisory #70

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

frasertweedale
Copy link
Collaborator

@frasertweedale frasertweedale commented Jun 25, 2023

A single vulnerability in a particular package may manifest itself simultaneously across one or more dependent packages. In this case, it would be good to issue a single advisory, rather than multiple. The OSV schema reflects this reality. Every OSV object has a list of affected packages, possibly with differing CVSS scores.

Modify the TOML schema to accept multiple affected packages. There is now an array of tables called affected. The package, cvss, arch, os and declarations fields, and the versions table, become members of the affected elements.

Fixes: #65


hsec-tools

  • Previous advisories are still valid

A single vulnerability in a particular package may manifest itself
simultaneously across one or more dependent packages. In this case,
it would be good to issue a single advisory, rather than multiple.
The OSV schema reflects this reality. Every OSV object has a list of
affected packages, possibly with differing CVSS scores.

Modify the TOML schema to accept multiple affected packages.  There
is now an array of tables called `affected`.  The `package`, `cvss`,
`arch`, `os` and `declarations` fields, and the `versions` table,
become members of the `affected` elements.

Fixes: haskell#65
@blackheaven blackheaven merged commit 8b442c3 into haskell:main Jun 26, 2023
@frasertweedale frasertweedale deleted the lib/multi-affected branch June 27, 2023 00:21
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.

TOML: support multiple packages in a single advisory
3 participants