Repository navigation
Conversation
curl rates its advisories Low/Medium/High/Critical on its own scale and states it does not use CVSS, but curl_importer_v2 stored these values under the cvssv3.1 scoring system. Signed-off-by: Ankit-dmc <Ankit-dmc@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2557
curl rates its advisories Low/Medium/High/Critical on its own scale and says it does not use CVSS (https://curl.se/dev/vuln-disclosure.html#severity-levels).
curl_importer_v2stored these values undercvssv3.1, so every curl advisory had a "CVSSv3.1" severity like "Low".This switches the system to
GENERIC(generic_textual), which is what other importers use for textual ratings, and updates the test that assertedcvssv3.1.Checked:
pytest vulnerabilities/tests/pipelines/v2_importers/test_curl_importer_v2.py vulnerabilities/tests/test_risk.pypasses (risk scoring already maps textual values like "low"/"critical")black --checkandisort --check-onlypass on the changed filesgeneric_textualNote: severities already stored from earlier runs keep
cvssv3.1until the importer runs again.