Support Ignoring Results Without CVSS Scores and Configurable CVSS Threshold in config.toml #1400
Labels
autoclosed
Closed by automation
enhancement
New feature or request
stale
The issue or PR is stale and pending automated closure
Description:
Currently, OSV-Scanner does not provide an option to filter vulnerabilities by their CVSS score directly in the configuration file (
config.toml
). This feature would greatly enhance usability by allowing users to focus on critical vulnerabilities and ignore those without CVSS scores or below a specified threshold.Proposed Feature:
Add support in the
osv-scanner.toml
configuration file to:Ignore vulnerabilities without a CVSS score:
ignoreNoCVSS = true
) to exclude results where no CVSS score is provided.Set a minimum CVSS score threshold:
minCVSS = X.X
to only display vulnerabilities with a CVSS score equal to or above the defined threshold.Example Configuration:
Expected Behavior:
ignoreNoCVSS = true
, all vulnerabilities without a CVSS score are excluded from the scan results.minCVSS
is set, only vulnerabilities with a CVSS score >= the specified threshold are included in the output.Benefits:
Let me know if you’d like further details or examples to assist in implementation. Thank you!
The text was updated successfully, but these errors were encountered: