-
Notifications
You must be signed in to change notification settings - Fork 6
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
SEMVER ranges could be flattened #180
Comments
Hi @oliverchang, Thanks for your suggestion. We have been testing the changes to solve this, but we are facing one of the conditions not allowed in the osv/schema.json file: there are mixed
How should we handle these situations in our OSV files? Should we add the |
Is there some reason that this information is important to express for you?
There are some cases where this can cause issues: For instance:
means a very different thing from:
The former means all versions are always going to be affected, because the unclosed The latter would mean that versions after and including 2.4 are marked as unaffected. |
Hi @oliverchang, Thanks for your inputs. We chose to express all affected versions in the |
For the single version case, it may be better to use the or
You can specify individual versions without encoding them as part of any range. Having to mix
Yes, this sounds like this would work, but the other two approaches (using |
Hi @oliverchang, Thanks for your message. We will go with the two arrays approach for now as it solves the issue on our side and also simplifies the |
We have updated the vulndb with the changes mentioned in this ticket (see pr/215). I'm closing this ticket. |
Title
SEMVER ranges could be flattened
What is the problem this feature will solve?
Currently, OSV entries with multiple SEMVER ranges are provided separately:
e.g. https://github.com/bitnami/vulndb/blob/87b00414368ba008df70dae5141ed0c4ca63e6eb/data/wordpress/BIT-2023-39999.json
Instead, it's more concise (and preferred) to flatten these into:
What is the feature you are proposing to solve the problem?
Flatten the version ranges.
The text was updated successfully, but these errors were encountered: