Skip to content

Commit

Permalink
Clarified last_affected (#159)
Browse files Browse the repository at this point in the history
This is a first pass at further clarifying the `"last_affected"` field
and addressing #146 and #150.

Preview is available
[here](https://hayleycd.github.io/osv-schema/#requirements)

---------

Signed-off-by: Hayley Denbraver <[email protected]>
Co-authored-by: Chris Bloom <[email protected]>
  • Loading branch information
Hayley Denbraver and chrisbloom7 authored Jun 23, 2023
1 parent f0dbc2a commit 04f8e8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,11 @@ Only **a single type** (either `"introduced"`, `"fixed"`, `"last_affected"`,
Entries in the `events` array can contain either `"last_affected"` or `"fixed"`
events, but not both. It's **strongly recommended** to use `"fixed"` instead of
`"last_affected"` where possible, as it precisely identifies the version which
contains the fix.
contains the fix. `"last_affected"` should be thought of as the hard ceiling
of the vulnerability _at the time of publication_ in the absence of a fixed version.
Versions above `"last_affected"` should be considered unaffected. Unfortunately
this opens up the possibility for false negatives, which is why `"fixed"` is
overwhelmingly preferred.

There must be at least one `"introduced"` object in the `events` array. While
not required, it's also recommended to keep the `events` array sorted according
Expand Down

0 comments on commit 04f8e8d

Please sign in to comment.