Vulnerability scanning
View, filter, and act on vulnerability scan results for container images stored in Harness Artifacts, including severity and remediation.
Harness automatically scans every container image you push to a Docker or Helm registry that has security scanning enabled. Results appear on the Vulnerabilities tab of the artifact detail page and in the Vulnerabilities column on the Artifacts list. This page explains how to read scan results, filter findings by severity, understand what each scanner detects, and decide what to do with a flagged image.
Before you begin
Security scanning must be enabled on the registry. Go to Configure security scanning to enable it.
Viewing the Vulnerabilities tab requires a Harness Security Testing Orchestration (STO) license.
Scanning applies to Docker and Helm registries only. Other artifact formats do not produce vulnerability findings.
Find scan results
On the Artifacts list
The Artifacts list includes a Vulnerabilities column that shows the finding count for each artifact, broken down by severity: Critical, High, Medium, and Low. The Evaluation Status column shows one of two states:
Scanned
The scan pipeline ran and produced results. The severity counts reflect the current findings.
Not scanned
The scan pipeline has not run for this artifact, either because scanning was enabled after the artifact was pushed, or the scan pipeline has not yet completed.
On the artifact detail page
Click an artifact to open its detail page, then select the Vulnerabilities tab. The tab shows every CVE found in the image with the following fields:
CVE ID
The CVE identifier from the National Vulnerability Database, linked to the full advisory.
Severity
Critical, High, Medium, or Low, derived from the CVSS score.
Package
The software package or OS component that contains the vulnerability.
Installed version
The version of the package present in the image.
Fixed in
The earliest version of the package that resolves the CVE. Blank if no fix is available yet.
Description
A brief summary of the vulnerability.
Filter and sort findings
Use the severity filter buttons at the top of the Vulnerabilities tab (Critical, High, Medium, Low) to show findings at that severity level or above. Click the active filter again to clear it.
The table sorts by severity descending by default. Critical findings appear first.
Understand severity levels
Severity reflects the CVSS base score assigned by the scanner:
Critical
9.0–10.0
Remote code execution or privilege escalation with no authentication required. Prioritise immediately.
High
7.0–8.9
Significant impact, often requiring some user interaction or local access. Address before deployment.
Medium
4.0–6.9
Meaningful risk in specific conditions. Assess based on the image's deployment context.
Low
0.1–3.9
Minimal exploitability. Track and patch on a regular maintenance schedule.
A finding with no fix available means the upstream component has a known vulnerability, but no patched release has been published yet. Monitor the CVE advisory for updates. The recommended action is to evaluate whether the vulnerable component is reachable in your deployment context.
Scanner options: Aqua Trivy and Grype
Harness supports two built-in container scanners. Both are configurable per registry in the Security section of the Configuration tab:
Aqua Trivy scans OS packages (Alpine, Debian, Ubuntu, RHEL, CentOS, and others), application language packages (npm, pip, Cargo, Maven, Go modules, NuGet, and others), and configuration files. It checks findings against the NVD, GitHub Advisory Database, and OS-specific advisory databases.
Grype specialises in container image scanning and supports a broad set of ecosystems. It checks findings against the Grype vulnerability database, which aggregates NVD, GitHub Security Advisories, and additional sources. Grype tends to produce fewer false positives on application-layer packages.
You select one scanner per registry. Go to Configure security scanning to change the scanner for a registry.
Act on findings
The actions available depend on whether the artifact has been quarantined by a policy.
If the artifact is not quarantined, it is pullable. Review the findings and decide whether to:
Rebuild the image with a patched base image or dependency, then push the new version.
Accept the risk if the vulnerable component is not reachable or exposed in your deployment.
Add a policy exception if your team has reviewed the finding and determined it does not apply.
If the artifact is quarantined, it cannot be pulled until it is released. Go to Quarantine to understand how to review findings and release or delete a quarantined artifact.
For upstream dependencies fetched from external registries, Dependency Firewall can block packages before they are cached, using synchronous policy evaluation at the upstream proxy boundary. Go to Dependency Firewall for that use case.
Scanner project requirements
The scan pipeline runs inside a Harness project. The project context depends on the registry scope:
Project-level
The scan pipeline runs in the same project as the registry. No additional setup required.
Organization-level
Create a project named default_project in the organization that contains the registry. The scan pipeline uses this project automatically.
Account-level
Create a project named default_project in the default organization (created automatically with your account). The scan pipeline uses this project for all account-level registry scans.
Troubleshooting
Next steps
To enable scanning on a registry, go to Configure security scanning.
To understand how quarantine works and how to release a quarantined artifact, go to Quarantine.
To view the SBOM generated alongside the vulnerability scan, go to SBOM: view, score, and download.
For deeper security orchestration, policy gating, and multi-scanner workflows, go to Harness Security Testing Orchestration.
Last updated
Was this helpful?