Imagine the first time someone adds a scanner to the pipeline. Trivy runs against the application image and prints a table that scrolls for a while: 400 findings, a few dozen marked critical. The team now has two bad options. Fail every build until the number reaches zero, which will never happen, or let the scan run in the background where nobody reads it.
There's a better path, and it starts with knowing what the number actually measures. Most of a raw scan count describes which packages ended up in your image and how a database matched them, not how much risk you're carrying. To find the findings that matter, work through four questions in order:
- Is it real for your distro? Some findings are false positives caused by how the scanner matched versions.
- Can it be fixed? A finding with an available fix is cheap to act on.
- Is it being exploited? A vulnerability attackers are actually using outranks a higher score nobody is exploiting.
- Is the vulnerable part exposed or used? Context decides how fast you need to move.
Then fix what's cheap first, usually the base image, write down every decision with an expiry date, and gate the build on what's fixable and exploited rather than on the total. Tool behavior below reflects the Trivy, Grype, Docker Scout, and Microsoft documentation as of November 2026. These tools change often, so check the linked pages for your version.
Why the number is so high
Most findings arrive with the base image. An application image usually starts from a full OS image, and every package in it is scanned, whether or not your app uses it. Docker Scout's docker scout cves command has an --ignore-base option to "Filter out CVEs introduced from base image," which is a quick way to see how much of your count you inherited rather than added.
Distro backports confuse version-only matching. Linux distributions often fix a vulnerability by patching the version they already ship instead of upgrading to the upstream release that contains the fix. Red Hat's backporting page explains that "just looking at the version number of a package will not tell them if they are vulnerable or not," and that tools which compare version numbers produce "false positives as the tools do not take into account backported security fixes." For example, a scanner that only reads the version string might flag a library as vulnerable even though the distro's build of that version already carries the patch. Scanners such as Trivy reduce this by using the OS vendor's own advisory data for OS packages, according to Trivy's vulnerability scanner docs.
Distro severity differs from NVD on purpose. The same CVE can look critical in one feed and minor in another, because distributions rate it against the package they actually ship:
- Red Hat says CVSS base scores "may vary for each vendor's version" and that the differences "can cause the scores to vary widely" (severity classification).
- Debian says "Debian doesn't use severity levels" and assesses impact "against the binaries as provided by Debian" (security tracker).
- Ubuntu says its priority "is distinct from other published severity levels such as CVSS base scores" and that "CVSS is not a measure of risk" (CVE statuses).
Some findings have no severity at all. NIST's National Vulnerability Database says it developed "a significant backlog of unenriched CVEs" starting in early 2024. In an April 15, 2026 update, NIST said backlogged CVEs published before March 1, 2026 were moved to "Not Scheduled," with priority going to CVEs in CISA's Known Exploited Vulnerabilities catalog. If your scanner leans on NVD data, some findings will show "unknown" severity. That doesn't mean they're harmless; it means you need another signal, such as the distro's own rating.
Shrink the image before you triage it
The cheapest finding to triage is the one that isn't there. Before you spend time on individual CVEs, reduce what ships in the image:
- Use multi-stage builds. Build in one stage and copy only the output into a smaller final stage. Docker's multi-stage build docs note that "None of the build tools required to build the application are included in the resulting image."
- Pick a smaller base. Distroless images "do not contain package managers, shells or any other programs," and the project says this improves the "signal to noise of scanners." Docker made its Docker Hardened Images free under an Apache 2.0 license in December 2025. Other vendors sell minimal images with remediation commitments; treat those commitments as vendor claims and read the terms.
- Rebuild regularly on a fresh base. A base image that hasn't been pulled in months carries every CVE fixed since then. Rebuilding on the current tag (or a newly bumped digest) often removes more findings than any individual fix.
Minimal images change how you debug. Without a shell, kubectl exec has little to work with. Distroless offers :debug variants with a busybox shell, and Kubernetes ephemeral containers are designed for cases where "a container image doesn't include debugging utilities, such as with distroless images."
One caution: a low count isn't proof of a clean image. A scanner can only report packages it can identify. If an image is built in a way the scanner doesn't understand, for example files copied in without package metadata, it may report fewer findings simply because it sees less. Docker's own walkthrough of hardened images makes a related point about suppressed findings: "Zero CVEs does not mean the packages were removed." Check that your scanner lists the packages you expect before you celebrate a small number.
Fixable or not: what "no fix available" really means
Every scanner tracks whether a fix exists, and each uses its own vocabulary:
- Trivy:
--ignore-unfixed"is a shorthand of--ignore-status affected,will_not_fix,fix_deferred,end_of_life" and "displays 'fixed' vulnerabilities only," according to Trivy's filtering docs. - Grype:
--only-fixed"filters scan results to show only vulnerabilities that have fixes available," and the fix states arefixed,not-fixed,wont-fix, andunknown(Grype filtering docs). - Docker Scout:
--only-fixedand--only-unfixedfilter to fixable and unfixed CVEs (CLI reference). - Distros: Ubuntu uses statuses such as "Vulnerable, fix deferred" and "Ignored" (won't be fixed), and Debian uses markers such as no-dsa for lower-impact issues it won't issue an advisory for.
Filtering to fixable findings is a sensible way to build a work queue, because those are the ones an update will resolve. But hiding unfixed findings doesn't make them safe. An unfixed finding can still go away if you switch to a different base image or remove the package, and an unfixed vulnerability that attackers are actively exploiting needs a compensating control, such as removing the exposure, while you wait. Treat "no fix available" as "needs a decision," not as "nothing to do."
Exploited beats severe: CVSS, EPSS, KEV, and SSVC
A long list sorted by CVSS score is the default view in most tools, and it's the wrong order for most teams.
CVSS measures severity, not risk. FIRST's CVSS v4.0 User Guide (version 1.2, November 2025) says Base scores "are designed to measure the severity of a vulnerability" and "should not be used alone to assess risk." It recommends supplementing them with an analysis of your environment.
EPSS estimates how likely exploitation is. FIRST's Exploit Prediction Scoring System is a model that estimates "the probability that a published CVE will be exploited in the wild in the next 30 days." FIRST's guidance on using EPSS adds some important limits: "EPSS has no visibility into your asset inventory or compensating controls," it isn't a live feed of attacks, and it shouldn't be multiplied by CVSS to make a single score.
KEV tells you what's already being exploited. CISA's Known Exploited Vulnerabilities catalog lists vulnerabilities with evidence of exploitation in the wild, and CISA says organizations should use it "as an input to their vulnerability management prioritization framework." FIRST's EPSS guidance is clear about how the two relate: "KEV and EPSS answer different questions," and if a CVE is in KEV, "treat it as actively exploited and prioritize accordingly, regardless of EPSS score."
SSVC adds your context. CISA's Stakeholder-Specific Vulnerability Categorization is a decision model built on points such as exploitation status, technical impact, whether exploitation can be automated, and how important the affected system is. It ends in a decision (Track, Track*, Attend, or Act) rather than a score.
CISA applied this thinking to US federal agencies in Binding Operational Directive 26-04, issued June 10, 2026. It replaced the earlier KEV directive (BOD 22-01) and ties remediation timelines to four factors: whether the asset is publicly exposed, whether the vulnerability is in KEV, whether exploitation can be automated, and its technical impact. CISA says the timeline table "is informed by the SSVC system." The directive applies to federal civilian agencies, not to private companies, but its logic is a useful model: exposure and exploitation decide urgency, not the score alone.
Your scanner may already surface these signals. Docker Scout has --epss to sort by EPSS and --only-cisa-kev to filter to KEV entries. Grype's results documentation describes a KEV indicator and says Grype sorts results by a risk score by default, while noting that "EPSS is not a risk score."
Is the vulnerable code even used? Reachability, with honest limits
A package being present doesn't mean its vulnerable code runs. Several commercial tools offer runtime or reachability analysis that marks which packages are actually loaded in a running container. These are vendor features, and their claims are worth reading carefully.
The more useful documentation is honest about limits. Endor Labs' container reachability docs, for example, say the analysis "applies only to OS-level packages," does "not analyze specific vulnerable functions within those packages," and doesn't detect dependencies loaded after the profiling window ends. That last point applies to runtime observation in general: a code path that didn't run while the tool was watching, such as an error handler or a monthly job, looks unused.
Use reachability to order the work, not to close findings on its own. "Loaded at runtime" is a good reason to move a finding up the list. "Not observed" is a weaker reason to move it down, and it isn't proof that the code can't run.
Record decisions: VEX and ignore files that expire
Triage only helps if the decisions survive to the next scan. Otherwise, the same findings come back every week and someone re-investigates them. There are two common ways to record decisions.
VEX (Vulnerability Exploitability eXchange) is a machine-readable statement that a product is or isn't affected by a vulnerability. The OpenVEX specification (v0.2.0) defines four statuses: not_affected, affected, fixed, and under_investigation. A not_affected statement must include a justification or an impact statement, and the spec defines five justifications:
component_not_presentvulnerable_code_not_presentvulnerable_code_not_in_execute_pathvulnerable_code_cannot_be_controlled_by_adversaryinline_mitigations_already_exist
The CSAF 2.0 VEX profile uses different status names (such as known_not_affected) but the same five justifications.
Tools don't treat VEX the same way, which matters if you scan with more than one:
- Grype reads OpenVEX and CSAF, and "By default, Grype moves vulnerabilities with
not_affectedorfixedstatus to the ignored list." - Docker Scout supports OpenVEX, and "The
not_affectedstatus is the only status that results in CVE suppression." Docker recommends attaching VEX to images as attestations. - Trivy accepts VEX with the
--vexoption and supports OpenVEX and CSAF for all targets, with CycloneDX VEX for SBOM targets only. Trivy's VEX docs label the feature experimental, so behavior may change between versions.
VEX is a claim, so who wrote it matters. Trivy's VEX Hub says it "primarily trusts VEX documents published by the package maintainers." For your own statements, keep them in version control and review them like code.
Ignore files are simpler, and should expire. Trivy's .trivyignore supports an expiry on each entry, for example CVE-2019-14697 exp:2023-01-01, after which the finding reappears. Trivy's YAML ignore file adds an expired_at field, but it's experimental and must be passed explicitly with --ignorefile. Grype's ignore rules don't document an expiry field, so track review dates another way, such as in the commit or ticket that added the rule.
Whatever you use, every exception should have an owner, a reason, and an expiry date. An ignore entry without an expiry is a decision nobody will revisit.
A CI gate that blocks what matters
A gate that fails on any critical finding gets disabled the first time it blocks an urgent fix. A gate that never fails gets ignored. A middle path that's easier to keep in place:
- Block on fixable critical and high findings. An update exists, so the fix is usually a base image bump or a dependency update.
- Block on anything in KEV, fixed or not. If no fix exists, the build can proceed only with an explicit, expiring exception and a compensating control.
- Warn on everything else, and surface it where people already look.
- Let exceptions expire, so the gate re-evaluates old decisions.
The tools give you the pieces. Trivy exits with 0 by default; its docs explain that --exit-code 1 --severity CRITICAL makes the run fail "only when a critical vulnerability is found," and you can combine that with --ignore-unfixed for a fixable-only gate. Docker Scout has an --exit-code option that returns 2 when vulnerabilities are found, plus policies for things like outdated or unapproved base images. For visibility, Docker Scout can write SARIF output with --format sarif (check your scanner's output formats), and GitHub code scanning accepts SARIF through the upload-sarif action with security-events: write permission (GitHub docs).
On Azure, Microsoft Defender for Cloud scans container registry images using Microsoft Defender Vulnerability Management, according to its Learn page (updated October 2026). Its gated deployment feature uses an admission controller with rules that either audit or deny deployments of images matching vulnerability conditions. Starting with audit rules lets you see what a deny rule would block before you turn it on. Microsoft has also described a Defender for Cloud CLI for scanning in GitHub Actions and Azure DevOps pipelines; check its current availability before you build on it.
Whichever scanner runs in CI, it runs with access to your pipeline. In March 2026, compromised versions of the Trivy GitHub Action were used to steal CI secrets, so pin the scanner action to a commit SHA like any other third-party action.
Keep scanning after the build
A scan at build time describes the image on that day. New CVEs are published against packages that were clean last month, so an image that passed the gate can fail it later without a single code change.
- Rescan images you're running, not just images you're building, on a schedule.
- Know your tool's rescan coverage. Defender for Cloud's documentation says it rescans images daily only if they were pushed or pulled in the last 30 days, or are running in a monitored cluster. Older images in the registry aren't rescanned.
- Rebuild when the base image updates. Automated base image updates, such as Dependabot or Renovate bumps to a pinned digest, keep a pinned image from going stale.
Regulation and guidance
This isn't legal advice, but two developments give the work some external weight.
In the EU, the Cyber Resilience Act applies to manufacturers of products with digital elements. Its reporting obligations for actively exploited vulnerabilities have applied since September 11, 2026, and most other obligations apply from December 11, 2027. Its essential requirements include making products available "without known exploitable vulnerabilities" and providing a software bill of materials. The focus on "known exploitable" rather than every known CVE lines up with the triage approach in this article. If you ship software in the EU, ask your legal or compliance team how the act applies to you.
In the US, CISA's KEV catalog, SSVC, and BOD 26-04 are the clearest public model for prioritizing by exploitation and exposure. NIST's Secure Software Development Framework (SP 800-218) covers vulnerability response as part of secure development.
A container vulnerability triage checklist
- Start with the image: multi-stage builds, a minimal base, and regular rebuilds on a fresh base.
- Confirm the scanner sees your packages, so a low count reflects reality.
- Use distro data for OS packages, and expect backported fixes to explain some findings.
- Split findings into fixable and unfixed, and treat unfixed as "needs a decision."
- Put KEV entries first, then use EPSS and your own exposure to order the rest.
- Use reachability to order work, not to close findings.
- Record decisions as VEX or ignore entries with an owner, a reason, and an expiry.
- Know how each of your tools treats VEX, especially if you run more than one.
- Gate CI on fixable critical and high findings and on KEV, and warn on the rest.
- Rescan running images on a schedule, and know which images your tool skips.
- Pin the scanner itself like any other third-party CI dependency.
A raw count of 400 tells you very little. A short list of fixable, exploited, and exposed findings, with every other decision written down and set to expire, tells you what to do this week.



