Patching CVEs
Finding vulnerabilities only helps if they are fixed quickly. Our commitment:
“Fixable” means an upstream fix exists: a newer Go module, npm package or base image without the vulnerability. For CVEs without a fix, see No fix available.
When the clock starts
The hour starts when the CVE reaches us, through any of these:
| Source | How it shows up |
|---|---|
| Pull request or commit scan | A new row in the Trivy table of the Security scan check (Pull request and commit scans) |
| Release gate | A hardened release fails on the vulnerability gate (Hardened releases and signing) |
| Promotion | A non-zero count in the Container image security (Trivy) table of a promotion pull request (CVE results in release notes) |
| Runtime | Trivy Operator’s daily rescan of running images, in the VulnerabilityReport and the Grafana dashboards (CVE scanning) |
| Advisory or report | A security advisory for a dependency we use, or a report sent to the contact in security.txt |
The hour, step by step
Everything that makes this fast is already in place: one shared release workflow, digest-pinned base images, and scans that confirm the fix automatically. A hardened release usually takes under 15 minutes.
| Minutes | Step | Done when |
|---|---|---|
| 0–10 | Triage. Identify the image, the CVE, the affected package and its fixedVersion. Check which components use the same package. | The list of repositories to patch is known. |
| 10–30 | Fix. Upgrade the Go module or npm package, or bump the digest-pinned base image. One pull request per repository. | The pull request’s security scan no longer shows the CVE. |
| 30–50 | Release. Merge and run Bump release with hardened: true. The release gate fails while any medium, high or critical CVE remains, so a green release is the proof. | The release is published with Image hardening: Verified. |
| 50–60 | Hand over for deployment. The release opens the staging GitOps pull request. Production and customer environments follow through a promotion pull request, whose CVE table shows the fix. | The patched version is ready to deploy. |
When several repositories share the vulnerable dependency, patch them in parallel: each has its own pull request and release.
Typical fixes
- Go module.
go get <module>@<fixed version> && go mod tidy. Upgrade even whengovulncheckreports the code as unreachable: the image gate counts it regardless. - OS package. Update the base image’s tag and digest in the Dockerfile.
CI caches layers, so an
apk upgradelayer can stay stale until theFROMdigest changes. - Go toolchain. A CVE in the standard library is fixed by a newer Go
patch release: update the builder image and the
godirective together. - Third-party image (ingress, storage, monitoring). Upgrade the chart or image version in GitOps; we don’t rebuild other vendors’ images.
After the release
- Deploy through GitOps: merge the staging pull request, then promote.
- Production admission accepts the new version only because it is a
hardened release; test with
kubectl set image ... --dry-run=serverbefore promoting (see Kyverno policies). - Trivy Operator scans the new image as soon as its Pods start. The finding
drops off the Trivy Operator - Vulnerabilities dashboard and the
VulnerabilityReport. - Customer environments receive the patch through a promotion pull request in their own GitOps repository, with the CVE table showing the result.
No fix available
A hardened release fails on medium, high and critical CVEs even without a fix, and there is no ignore file. When upstream has not released a fix:
- Remove the package if the image doesn’t need it. Hardened images contain only what the service runs, so this is often possible.
- Switch to a base image or library that doesn’t carry the vulnerability.
- Otherwise, the current release keeps running and the next release waits for the fix. Track the upstream advisory and patch within the hour once a fix is published.
Why we can be this fast
- One release workflow. Scanning, SBOM, signing and attestation are the same for every repository; patching never needs pipeline work.
- Small images. Few packages means few CVEs, and a fix rarely touches more than one dependency.
- Automatic proof. The release gate fails until the CVE is gone, so we don’t need a manual check to know a patch worked.
- Safe deployment. Signed and attested releases, Kyverno admission and GitOps pull requests make it low-risk to ship a patch the moment it is ready.