Skip to content

Reimporting Trivy Scan report sets previously Active vulnerabilities to Active and Verified #14534

@l4mdor

Description

@l4mdor

Bug description
When reimporting a report from Trivy Scan, if there are a large number of vulnerabilities (~1000), if the vulnerabilities were previously Active, they are marked as Active, Verified. The error is reproduced through both the UI and the pipeline.

Manually, the Active or Verified markup options are not additionally set.

The error is reproduced only when importing a large number of vulnerabilities. With a small amount, such a problem is not observed.

This causes big problems when the system is configured to send vulnerabilities marked Verified to Jira. Then ~1000 tickets are sent to Jira.

Steps to reproduce
Steps to reproduce the behavior:

  1. Set up integration with Jira to automatically send only Verified vulnerabilities
  2. Select an existing engagement
  3. Add a new test with scan type "Trivy Scan" with ~1000 vulnerabilities.
  4. Go to the engagement and click on the colon next to "Trivy Scan" and select "Re-upload a Trivy Scan"
  5. Select the same vulnerability file and upload

Expected behavior
Do not mark vulnerabilities as Verified when reimporting a large number of vulnerabilities, unless otherwise specified.

Deployment method

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: Debian GNU/Linux 12 (bookworm)
  • Docker Compose or Helm version: docker compose v2.40.0
  • DefectDojo version (see footer) or commit message: v2.51.0

Logs
n/a

Sample scan files
Trivy Scan image report with 1000 or more vulnerabilities

Screenshots

Image

Additional context (optional)
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions