VulnerabilitiesOverTime chart does not display all vulnerabilities

The VulnerabilitiesOverTime panel on the Security Dashboard is showing incorrect data after a new vulnerability is added. Specifically, only the new vulnerability appears at the latest timestamp. All previously existing vulnerabilities disappear from that point in time. In this issue we want to investigate why this is happening.

Images

image

image.png

image.png

image.png

GraphQL Query

{
  group(fullPath: "gitlab-org") {
    id
    securityMetrics {
      vulnerabilitiesOverTime(
        startDate: "2025-04-20T00:00:00Z"
        endDate: "2025-07-01T00:00:00Z"
      ) {
        nodes {
          date
          bySeverity {
            severity
            count
          }
        }
      }
    }
  }
}

There are more queries to try out here: !198101 (merged)

Edited by 🤖 GitLab Bot 🤖