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

Validation failed: Expected value to match one of the values specified by the enum CVSSv3.1 #279

Closed
colinkmorgan opened this issue Dec 15, 2023 · 4 comments

Comments

@colinkmorgan
Copy link

We've incorporated they CycloneDX.Core library into our .net core application and are using it to serialize and de-serialize cyclondx JSON files. During our testing, we attempted to import an example JSON that has vulnerabilities on it and the cyclondx library is not recognizing it as a valid cyclonedx file (the web tool validates it as a valid file).

Upon digging into the logs, and doing further testing we've identified the following:

  • The error message is "Validation failed: Expected value to match one of the values specified by the enum CVSSv3.1"
  • It seems all of the scoring methods work, except for "CVSSv31" (e.g if you change the method to "CVSSv3" it works as expected")
@mtsfoni
Copy link
Contributor

mtsfoni commented Jan 1, 2024

Could you provide a simplified bom.json as a testcase, and I will try to have a look at it soon.

@colinkmorgan
Copy link
Author

colinkmorgan commented Jan 2, 2024 via email

@dzsibi
Copy link
Contributor

dzsibi commented Jan 10, 2024

I submitted a PR (#261) back in September to fix this, but it hasn't been merged yet.

@mtsfoni
Copy link
Contributor

mtsfoni commented May 21, 2024

#261 has been merged and released

@mtsfoni mtsfoni closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants