Import EPSS data from Anchore Grype scans#12639
Merged
Merged
Conversation
Grype added EPSS metrics in v0.92.0, see: https://github.com/anchore/grype/releases/tag/v0.92.0 Adds EPSS support with a test based on the same busybox image used in anchore_grype/no_vuln.json. Also removes the hardcoded CWE value as Grype does not support CWE data.
|
This pull request contains a minor input validation weakness in the
Input Validation Weakness in
|
| Vulnerability | Input Validation Weakness |
|---|---|
| Description | The get_epss_values method lacks comprehensive input validation when parsing EPSS scores from external JSON data. While the method uses a try-except block to handle type conversion, it does not perform explicit validation of the EPSS score and percentile values' format, range, or content. This could potentially allow malformed input to be processed without sufficient checks. |
django-DefectDojo/dojo/tools/anchore_grype/parser.py
Lines 210 to 229 in 27779e4
All finding details can be found in the DryRun Security Dashboard.
Maffooch
requested changes
Jun 20, 2025
valentijnscholten
approved these changes
Jun 20, 2025
Maffooch
approved these changes
Jun 23, 2025
hblankenship
approved these changes
Jun 25, 2025
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.
Description
Grype added EPSS metrics in v0.92.0, see:
https://github.com/anchore/grype/releases/tag/v0.92.0
Adds EPSS support with a test based on the same busybox image used in anchore_grype/no_vuln.json.
Also removes the hardcoded CWE value as Grype does not support CWE data.
Test results
Adds
unittests.tools.test_anchore_grype_parser.TestAnchoreGrypeParser.test_grype_epss_values.Modifies
unittests.tools.test_anchore_grype_parser.TestAnchoreGrypeParser.test_check_all_fieldsto reflect CWE change.Fixes typo in
unittests.tools.test_anchore_grype_parser.TestAnchoreGrypeParser.test_grype_parser_with_one_critical_vuln_has_one_findings.Documentation
Updates documentation with information on scanning SBOMs and newer style of getting Grype JSON output written to file.
Checklist
This checklist is for your information.
dev.dev.bugfixbranch.