Skip to content

Show whether dependency is transitive #91

Open

Description

@theinfosecguy

Is there a way we can find if a dependency is transitive or not?

Activity

  1. added
    enhancement
    on Jan 5, 2023
  2. oliverchang commented on Jan 5, 2023

    @oliverchang
    Collaborator

    Hi! Can you please elaborate?

    Do you mean a boolean flag of some source in our JSON output indicating if a vulnerability is in a direct dependency or not?

  3. HarelMil commented on Jan 10, 2023

    @HarelMil

    @theinfosecguy +1
    @oliverchang In my opinion it would be great not just to outline as boolean whether it is a direct or transitive, but to indicate the depth of the dependency tree.
    This will be very useful for mitigation strategy (direct or low depth can be better influenced than a deeper depth).

  4. theinfosecguy commented on Jan 23, 2023

    @theinfosecguy
    ContributorAuthor

    @oliverchang Not just a boolean flag but a vulnerable function and dependency tree as well. Is there a way to achieve this?

  5. oliverchang commented on Jan 24, 2023

    @oliverchang
    Collaborator

    That certainly sounds doable. Sounds like what we'd like here is some output that indicates the vulnerable dependency chain that led to a finding (including function level info if we have that)?

  6. theinfosecguy commented on Feb 1, 2023

    @theinfosecguy
    ContributorAuthor

    Thanks, @oliverchang!! Having a check for direct dependency would be an amazing feature.

  7. agmond commented on Mar 5, 2023

    @agmond

    That certainly sounds doable. Sounds like what we'd like here is some output that indicates the vulnerable dependency chain that led to a finding (including function level info if we have that)?

    @oliverchang I'd be very happy to see the chain of packages that led to a finding!

  8. oliverchang commented on Apr 18, 2023

    @oliverchang
    Collaborator

    With the deps.dev API becoming open and available, this could be potentially a lot easier for us to implement now!

  9. oliverchang commented on Apr 18, 2023

    @oliverchang
    Collaborator

    To track the concrete FR: this is around adding some ability to visualise the dependency chain(s) that leads to a vulnerable package. This could be either output as a JSON, and/or visualised as a graph image.

    @theinfosecguy @agmond @HarelMil can you talk about a bit more about how you plan to use the dependency trees this would potentially generate? This would help us a bit more in prioritising/shaping how this actually looks.

    (#352 may also be interesting for folks in this thread to follow).

  10. agmond commented on Apr 18, 2023

    @agmond

    Thanks @oliverchang.
    Yesterday I already started exploring deps.dev as well.

    As for my use case (and it connects to the remediation efforts as well):
    Currently, OSV-Scanner scans lock files (e.g. package-lock.json), which are auto-generated files, and marks some sub-dependencies as vulnerable.
    I want to connect the vulnerable sub-dependency to the root of the tree (i.e. to the package that appears in the package.json file), and then raise an alert on the relevant line in the package.json file (which is the file where the root cause of the vulnerability was introduced, and this is the place that should be edited to remediate the issue).

    Another relevant issue I opened is #150

  11. HarelMil commented on Apr 20, 2023

    @HarelMil

    @oliverchang Sure.

    TL;DR - Direct/indirect and dependency depth are great indicators for prioritizing vulnerable package remediation processes at scale.

    Dependency depth will be an excellent indication for understanding the possibility of patching the vulnerable package, which will affect the priority of addressing the specific vulnerable package.

    Applying a fix (if available) is easy and straightforward when it is a direct package, but for indirect packages, it is a different story.

    If the depth is relatively "shallow" the probability of applying a fix by contacting the chain of package maintainers is doable.
    However, when the depth is deep, the probability to apply an actual fix decreases significantly.

    When you have a significant amount of vulnerable packages, it may be a great help.

  12. agmond commented on Jun 1, 2023

    @agmond

    Hi,
    Is there any update on this issue?
    Thanks!

  13. oliverchang commented on Jun 2, 2023

    @oliverchang
    Collaborator

    Hi @agmond, thanks for the continued interest. We're actively working on this as part of #352. We'll have more to share in the coming months!

  14. agmond commented on Jun 6, 2023

    @agmond

    Thank you, @oliverchang.
    Can this feature (returning the dependency chain(s) that leads to a vulnerable package) be released as soon as it is ready, even before the full remediation feature?

  15. oliverchang commented on Jun 13, 2023

    @oliverchang
    Collaborator

    Sorry for the slow response. The dependency chain feature is closedly tied to the full remediation feature, which we're actively working on. We're working through the necessary steps to release such a feature, because it involves a bit of coordination with the deps.dev team.

  16. oliverchang commented on Nov 22, 2023

    @oliverchang
    Collaborator

    For folks following here, check out #352 (comment) which this feature is closely related to.

    Transitive dependency depth is one of the capabilities that will be added as part of the guided remediation feature we're aiming to launch Q1 next year. Sorry for the delays!

  17. github-actions commented on Jul 25, 2024

    @github-actions

    This issue has not had any activity for 60 days and will be automatically closed in two weeks

  18. added
    stale
    on Jul 25, 2024
  19. added
    backlog
    and removed
    stale
    on Jul 26, 2024
  20. changed the title [-]Transitive Dependencies[/-] [+]Show whether dependency is transitive[/+] on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions