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

Vulnerabilities Property called Remediation should be able to contain arrays of remediation #3

Open
S-Panta opened this issue Oct 16, 2024 · 0 comments · May be fixed by #6
Open

Vulnerabilities Property called Remediation should be able to contain arrays of remediation #3

S-Panta opened this issue Oct 16, 2024 · 0 comments · May be fixed by #6
Labels
bug Something isn't working

Comments

@S-Panta
Copy link

S-Panta commented Oct 16, 2024

The protocols specifies that remediation field contains List of remediations (remediations) of value type array with 1 or more Remediation items of value type object contains a list of remediations.
See more:
https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#32312-vulnerabilities-property---remediations
CSAFParser class fails to return such array

csaf/csaf/parser.py

Lines 188 to 192 in 4decb1b

if "remediations" in vulnerability:
for remediation in vulnerability["remediations"]:
vuln_info.set_remediation(remediation["category"])
vuln_info.set_action(remediation["details"])
self.vulnerabilities.append(vuln_info.get_vulnerability())

@anthonyharrison anthonyharrison added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants