What does --ignore-unfixed mean, and should you use it?

IntermediateConceptTrivy
Answer

Short answer

--ignore-unfixed hides vulnerabilities for which no fixed version exists yet. It keeps CI gates actionable — you only fail builds on issues you can actually fix by upgrading. The trade-off is that you must still track unfixed critical issues elsewhere.

Example

trivy image --severity CRITICAL shop-api:1.4.0                  # 9 findings, 6 have no fix
trivy image --severity CRITICAL --ignore-unfixed shop-api:1.4.0 # 3 findings — all fixable

When to use it

Use case Recommendation
CI gate (blocking) ✅ use it — don't block on what nobody can fix
Security reporting / dashboards ❌ don't — show the full picture
Critical unfixed CVE actively exploited Mitigate another way (config change, WAF, different base image)

Reducing unfixed noise

Switch to minimal base images (distroless, Alpine, Chainguard/Wolfi, Ubuntu chiselled) — fewer packages means fewer CVEs, fixed or not.

What to say in the interview

"--ignore-unfixed drops CVEs with no available fix, which keeps the pipeline gate actionable. We still report unfixed findings in dashboards and mitigate exploited ones separately, and minimal base images reduce that noise."

All Security Tools questions Roadmap: Trivy — image, file system & IaC scanning

More on Trivy