Skip to content

vulnfeeds: detect when version range has introduced > fixed #215

Todo

Description

@oliverchang

For PyPI vulnfeeds, there are some cases of bad data in the form of:

introduced: 1.0
fixed: 1.0b4

Encoded like so, this means that everything after and including 1.0 is affeted (because 1.0b4 comes before 1.0). This should instead be something like

introduced: 1.0a0
fixed: 1.0b4

We need to detect these cases in the vulnfeeds tool.

Activity

  1. oliverchang commented on Sep 17, 2021

    @oliverchang
    CollaboratorAuthor

    Another potential case to flag: pypa/advisory-database@b999607

  2. added
    bug
    actionability tbd
    on Oct 18, 2022
  3. andrewpollock commented on Oct 18, 2022

    @andrewpollock
    Contributor

    To help with prioritisation, does this code get used by anything currently?

  4. added this to the 2022'Q4 milestone on Oct 21, 2022
  5. oliverchang commented on Oct 24, 2022

    @oliverchang
    CollaboratorAuthor

    Yes, this is used by the PyPI database for auto-ingestion.

  6. removed
    actionability tbd
    on Nov 1, 2022
  7. andrewpollock commented on Nov 7, 2022

    @andrewpollock
    Contributor

    This is blocked on there being Go code to do Python version comparison

  8. oliverchang commented on Nov 7, 2022

    @oliverchang
    CollaboratorAuthor

    If we have that, then we'd add a check here:

    if introduced != "" && !hasVersion(validVersions, introduced) {
    ,

    And append a note if we detect that introduced > fixed.

  9. removed their assignment
    on Apr 2, 2025
  10. cvas22 commented on Nov 24, 2026

    @cvas22

    I'd like to pick this up if it's still wanted. #4551 got close before it went stale, so I'd redo it on top of the current conversion/versions.go: in ExtractVersionInfo, when both introduced and fixed are in the ecosystem's version list and introduced doesn't come before fixed, add a warning note, with tests for the 1.0 / 1.0b4 case. Could you assign it to me? thx

  11. G-Rath commented on Nov 24, 2026

    @G-Rath
    Collaborator

    @cvas22 thanks for asking first - I've assigned this to you, so go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issuevulnfeeds

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions