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

Vulnerability analysis cannot be performed, if the component contains “purchaser” property in SBOM file #4144

Open
2 tasks done
buke-narlitepe-itk opened this issue Sep 13, 2024 · 2 comments
Labels
blocked defect Something isn't working p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort

Comments

@buke-narlitepe-itk
Copy link

Current Behavior

When we upload SBOM file in CycloneDX ( 1.5 version) format to the tool, we do not get any results. Instead, we receive a parse error from your API.
Once we examine further:
if any component contains the following section, API throws an error:

  "purchaser": {
    "organization": {
      "contact": [
        {
          "name": ""
        }
      ]
    }

When we remove the above part from the component section, the analysis can be completed as expected.
Additionally, there is another component in SBOM file that has already vulnerabilities. Due to this error, its analysis is also skipped.

image
image

Proposed Behavior

If there is an error or omission in SBOM file that could disrupt the analysis, it would be better, that the error message was more descriptive.
At least the analysis results of the other component can be given, and the error of the faulty component can be thrown as a response in more descriptive way.
We would also like to know why such an error occurred.

Checklist

@buke-narlitepe-itk buke-narlitepe-itk added the enhancement New feature or request label Sep 13, 2024
@nscuro
Copy link
Member

nscuro commented Sep 13, 2024

we receive a parse error from your API.

Can you share the exact error you'e getting?

@nscuro nscuro added defect Something isn't working pending more information and removed enhancement New feature or request labels Sep 13, 2024
@nscuro
Copy link
Member

nscuro commented Sep 14, 2024

It's a parsing bug in the CycloneDX library: CycloneDX/cyclonedx-core-java#507

@nscuro nscuro added blocked p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort and removed pending more information labels Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked defect Something isn't working p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort
Projects
None yet
Development

No branches or pull requests

2 participants