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

Enrichment: Fixed versions, safe versions #4

Open
nscuro opened this issue Feb 6, 2025 · 0 comments
Open

Enrichment: Fixed versions, safe versions #4

nscuro opened this issue Feb 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@nscuro
Copy link
Member

nscuro commented Feb 6, 2025

Current Behavior

Fixed versions can be inferred on a per-vulnerability basis, given the vulnerable version ranges:

  • If the range has a < X.Y.Z constraint, X.Y.Z is a fixed version
  • If the range has a <= X.Y.Z constraint, any of (X+1).0.0, X.(Y+1).0, X.Y.(Z+1) could be fixed versions
    • (Heavily simplified, it's almost never as trivial as to increment a version part)
    • (Existence of those versions would need to be verified)
  • If the range only has > X.Y.Z and >= X.Y.Z constraints, there is no fix.

Additionally, some sources may explicitly report fixed versions.

This is nice for individual vulnerabilities, but it doesn't necessarily make the developers' jobs easier:
Bumping versions to fix one vulnerability might open the door to new vulnerabilities.

The real question is: What version can you safely update to, that is affected by no known vulnerability?

Proposed Behavior

As an enrichment step, analyze version ranges across all vulnerabilities affecting a component.

Try to work out which version is not, or is very unlikely to be, vulnerable.

Could leverage deps.dev here to verify the existence of component versions if necessary.

@nscuro nscuro added the enhancement New feature or request label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant