-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Question - Help! Ignore transitive dependencies in SBOM #568
Comments
full list of parameters: https://cyclonedx.github.io/cyclonedx-maven-plugin/makeBom-mojo.html#optional-parameters no, no parameter for that: why do you want to do that? SBOM is about managing dependencies to make sure people stop ignoring them, particularly the non-obvious ones like transitives? what is your use case for that? |
@hboutemy Thanks for checking on this. The use case involves scanning the SBOM file with a vulnerability scanner, which is also flagging CVEs for transitive dependencies. While the direct dependency vulnerabilities are under 25, the CVEs from transitive dependencies are 4 to 5 times higher when scanning projects like keycloak etc. I understand that the SBOM's goal is to capture all dependencies, but in our case, we cannot account for transitive dependencies. Modifying them could disrupt the build and compromise the stability of the project. so I feel like having an option to disable transitive dependency scanning will be a good feature. |
the description you give is exactly why adding an option would be counter productive: it's not a surprise that vulnerability issues come from transitives, SBOM have been done exactly for that transparency. |
Is your project an application or a library? If it is an application, the transitive dependencies will end up being bundled, so you can not ignore those CVEs. You can upgrade their versions using dependency management. If it is a library, the above technique is actually harmful for the consumers of the library:
The only solution that would guarantee that consumers of the library will not end up with vulnerable transitive deps is to advance those dependencies to direct dependencies, which has a lot of other disadvantages. @hboutemy, any idea how to solve this? I was planning to submit a patch that will not use Maven to compute the versions of transitive dependencies, but would merge the SBOM published by the dependency (if available). What do you think? |
@ppkarwasz projectType is library |
Is there any way to ignore transitive dependencies in the SBOM scan and include direct dependencies only?
In spdx there is a way to ignore the transitive dependencies in plugin configuration. is there anything relevant in cycloneDX?
The text was updated successfully, but these errors were encountered: