Skip to content

Vulnerability Report PDF Export via API Is Missing Content

Summary

When exporting the vulnerability report via the GitLab API in PDF format, the resulting PDF is generated but contains no content. The issue does not occur when exporting as CSV.

Steps to reproduce

  1. Navigate to a project or group Security & Compliance > Vulnerability Report
  2. Ensure there are visible findings in the report
  3. Use the following API to export the report in PDF format:
curl --header "PRIVATE-TOKEN: <your_token>" \
     "https://<your_gitlab_instance>/api/v4/projects/<project_id>/vulnerability_exports?format=pdf"
  1. Download the generated file once the export is ready
  2. Open the downloaded PDF file

Expected behavior

The exported PDF should contain a readable vulnerability report with the list of findings, metadata, and summaries.

Actual behavior

The PDF file is blank.

Reproduced on

GitLab.com

Attachments

image

Edited by 🤖 GitLab Bot 🤖