- how-to
- Kubernetes
- SBOM
How to see the outdated dependencies running in your Kubernetes cluster
Outdated means three things for a running container: a tag behind its line, a base past end of life, packages behind their branch. How to measure each from the running digests.
StackRadar Team
12 min read
A dependency running in a Kubernetes cluster can be outdated in three different ways, and no manifest shows any of them. The image tag can be behind its own release line. The base image can be past the date its distribution stopped shipping security fixes. And the packages inside can be behind the current builds for the release line they are on, with or without a published advisory. We pulled nginx:1.27-alpine on 8 November 2026 and it was all three at once: built nineteen months ago, on an Alpine branch that reached end of life a week earlier, with 25 of its 64 Alpine packages behind the branch and 20 of those carrying a security fix it does not have.
This post is the hands-on version of the question. It starts from the digests the kubelets report, gets one SBOM per digest, and then measures each of the three kinds of outdated with commands you can paste. The tool roundup by layer covers the Git side (Renovate, Dependabot) and the tag side (Nova, version-checker); this one stays inside the images, where the packages nobody declared live.
Three things "outdated" means
| Outdated how | What tells you | What fixes it |
|---|---|---|
The tag is behind its line. nginx:1.27-alpine was last built on 16 April 2025; mainline is 1.31 and 1.31.8-alpine exists. | The image config's created date; the registry's tag list. | Move the tag. Upstream's work, your deploy. |
| The base is past end of life. Alpine 3.21 stopped receiving security fixes on 1 November 2026. | The SBOM's distro field; endoflife.date. | Rebuild on a newer base. Every future advisory on the old line stays unfixed. |
| The packages are behind the branch. 25 of 64 Alpine packages older than the 3.21 index; 20 with an advisory and a fix. | The SBOM's versions against the branch's package index; a scanner for which ones have a fix. | Rebuild on the same base, or move to a tag that already was. |
The three are not the same list, and the order matters: the base question decides whether the package question has an answer at all, and the tag question decides whether you or upstream does the rebuild.
Step 1: start from what is running
Not from the manifests. spec.containers[].image is a request, usually a tag that the publisher can move; the kubelet records what it actually pulled in status.containerStatuses[].imageID as a repository plus a sha256 digest. The running-images post has the long version and the traps; this is the short one, init containers included:
kubectl get pods -A -o json | jq -r '
.items[]
| ((.status.initContainerStatuses // []) + (.status.containerStatuses // []))[]
| select(.imageID != "")
| .imageID | sub("^docker-pullable://"; "")' | sort -u > digests.txt
wc -l < digests.txt # distinct images actually runningOn a two-node production cluster of ours this listed 93 running containers on 40 distinct digests on the day of writing. Forty is the number of SBOMs you need, not 93: the same digest contains the same packages wherever it runs.
Step 2: one SBOM per digest
An SBOM is the package list with versions, which is the input for every check below. Syft reads an image straight from the registry with your local credentials and records which distribution the image is built on from its /etc/os-release:
# One SBOM per running digest; syft pulls straight from the registry, no Docker daemon needed
while read -r ref; do
syft -q "registry:$ref" -o syft-json="sboms/$(echo "$ref" | tr '/:@' '___').json"
done < digests.txt
# What each image is built on
jq -r '[.distro.id, .distro.versionID] | @tsv' sboms/*.json | sort | uniq -c 1 alpine 3.21.3For nginx:1.27-alpine that is 68 apk packages on Alpine 3.21.3. The SBOM post covers formats, private registries and the digests-not-tags rule in detail. Two things to know before going on: an image built from scratch has no distro and no OS packages, so only the language-package checks apply to it, while a distroless image reports Debian and a handful of packages; and every command from here on reads the SBOM file, never the cluster, so run them anywhere.
Step 3: is the base release still supported?
This is the check to do first, because it changes the meaning of every other result. endoflife.date aggregates the distributions' published schedules and serves them as JSON; the cycle name is the SBOM's distro.versionID with the patch dropped:
# Alpine 3.21.3 -> product "alpine-linux", cycle "3.21"
curl -s https://endoflife.date/api/v1/products/alpine-linux \
| jq -r '.result.releases[] | [.name, .releaseDate, .eolFrom, .latest.name] | @tsv' | head -53.24 2026-06-09 2028-06-01 3.24.4
3.23 2025-12-04 2027-11-01 3.23.8
3.22 2025-05-30 2027-05-01 3.22.8
3.21 2024-12-05 2026-11-01 3.21.10
3.20 2024-05-22 2026-04-01 3.20.10Alpine 3.21's security fixes ended on 1 November 2026, seven days before we pulled the image. Its last package index is the final one: a package that is "current" on 3.21 today will still be current on 3.21 in a year, however many advisories are published against it. That is why an end-of-life base is a different finding from an outdated package. "No fix available" on a supported line means not yet; on an end-of-life line it means never, and the action is a base-image migration rather than a rebuild.
The lines you will meet most, with the date free security fixes end:
| Base | Fixes end | Base | Fixes end |
|---|---|---|---|
| Alpine 3.20 | 1 Apr 2026 | Debian 11 (LTS) | 31 Aug 2026 |
| Alpine 3.21 | 1 Nov 2026 | Debian 12 (LTS) | 30 Jun 2028 |
| Alpine 3.22 | 1 May 2027 | Debian 13 (LTS) | 30 Jun 2030 |
| Ubuntu 20.04 | 31 May 2025 | Node.js 25 | 1 Jun 2026 |
| Ubuntu 22.04 | 1 Jun 2027 | Python 3.10 | 1 Oct 2026 |
The runtime rows matter because a tag like node:25-alpine has been end of life twice over since June: the Node line stopped, and so did the rebuilds of the tag that would have picked up Alpine's fixes.
Step 4: which packages are behind the branch
A distribution publishes a package index per release line, and "outdated" for an OS package means older than the version in that index. For Alpine the index is a downloadable file, so the comparison is a join. The one trap is version ordering: Alpine versions are not strings, so let apk compare them.
# The branch's current package index (main + community), one "name<TAB>version" per package
for r in main community; do
curl -sL "https://dl-cdn.alpinelinux.org/alpine/v3.21/$r/x86_64/APKINDEX.tar.gz" | tar -xzO APKINDEX
done | awk '/^P:/{p=substr($0,3)} /^V:/{print p "\t" substr($0,3)}' | sort -u > index.tsv
# The image's packages, from the SBOM
jq -r '.artifacts[] | [.name, .version] | @tsv' sboms/nginx.json | sort > image.tsv
# Join, and let apk compare the versions (string equality gets Alpine's version scheme wrong)
join -t "$(printf '\t')" image.tsv index.tsv \
| docker run --rm -i alpine:3.21 sh -c 'while IFS="$(printf "\t")" read -r p a b; do
echo "$p $a $b $(apk version -t "$a" "$b")"; done' > compared.txt
awk '$4 == "<"' compared.txt | wc -l # behind the branch
awk '$4 == "="' compared.txt | wc -l # current
awk '$4 == ">"' compared.txt # ahead of the branch25
38
nginx 1.27.5-r1 1.26.3-r3 >Of the 64 packages the image shares with the Alpine repositories, 25 are behind the branch and 38 are current. One is ahead: nginx itself, which the official image installs from nginx.org's own repository at 1.27.5 while Alpine 3.21 ships 1.26.3. A string comparison would have counted it as behind; so would most "version drift" scripts. The other four packages not in the join are the nginx-module-* packages from the same nginx.org repository, which no Alpine index can judge.
alpine-release 3.21.3-r0 3.21.10-r0 <
apk-tools 2.14.6-r3 2.14.13-r0 <
brotli-libs 1.1.0-r2 1.1.1-r0 <
ca-certificates 20241121-r1 20261020-r0 <
curl 8.12.1-r1 8.14.1-r3 <
libcrypto3 3.3.3-r0 3.3.7-r2 <
libssl3 3.3.3-r0 3.3.7-r2 <
musl 1.2.5-r9 1.2.5-r12 <
tzdata 2025b-r0 2026f-r0 <
zlib 1.3.1-r2 1.4-r0 <
…For Debian and Ubuntu images the equivalent index is what apt reads, and the least error-prone way to compare is to let it: start a throwaway container from the same image and ask.
# Debian and Ubuntu: ask apt inside a throwaway container of the same image
docker run --rm --entrypoint sh python:3.11-slim -c \
'apt-get update -qq >/dev/null; apt list --upgradable 2>/dev/null'Listing...
zlib1g/stable-security 1:1.3.dfsg+really1.3.1-1+deb13u1 amd64 [upgradable from: 1:1.3.dfsg+really1.3.1-1+b1]One of 87 packages behind, and it is a security update that landed after the image was built three days earlier. That is what a maintained tag looks like: upstream rebuilds it, so what you pull is nearly current, and the gap is whatever the distribution published since. The nginx image is what an abandoned tag looks like. It is the same mechanism with the rebuilds switched off.
apt list --upgradable needs apt inside the image, so it does not work on distroless images, on minimal variants that removed apt, or on anything built from scratch. The SBOM-side comparison works on every image, and so does the scanner in the next step.Step 5: which of the behind packages matter
Being behind is not a finding by itself. The scanner turns the list into one: it matches the SBOM against the advisory databases and, for each match, says whether a fixed version exists and what it is. Grype on the same SBOM:
grype -q sbom:sboms/nginx.json -o json > nginx.grype.json
jq '[.matches[] | select(.vulnerability.fix.state == "fixed")] | length' nginx.grype.json # 210
jq '[.matches[] | select(.vulnerability.fix.state == "fixed") | .artifact.name] | unique' nginx.grype.json
jq -r '.matches[] | select(.vulnerability.knownExploited | length > 0)
| [.vulnerability.id, .artifact.name, .artifact.version, (.vulnerability.fix.versions | join(","))] | @tsv' nginx.grype.json210
["brotli-libs","busybox","busybox-binsh","c-ares","curl","libcrypto3","libcurl","libexpat","libpng","libssl3",
"libxml2","libxpm","musl","musl-utils","nghttp2-libs","pcre2","ssl_client","tiff","xz-libs","zlib"]
CVE-2026-111497 brotli-libs 1.1.0-r2 1.1.1-r0273 matches, 210 of them with a fix, in 20 packages. Every one of those 20 is in the list of 25 behind packages from the previous step, which is not a coincidence: a security fix is a newer build, so "has a fix" is a subset of "behind". The five behind packages with no advisory are alpine-release, apk-tools, ca-certificates, ca-certificates-bundle and tzdata: outdated, harmless, and picked up by the same rebuild. The one match in CISA's Known Exploited Vulnerabilities catalogue, CVE-2026-111497 in brotli-libs, has had its fix in the 3.21 index since before the branch closed.
The thing to notice is the shape. On an image that nobody rebuilt, the outdated list and the fixable list are nearly the same list; the scanner's contribution is the ordering, the identifiers and the deadlines, not the set. And every fix in that output is from the 3.21 index, which stopped moving on 1 November. The next advisory against libssl3 will be fixed in 3.22 and 3.24 and never in 3.21, which is the base-image migration the end-of-life check already told you about. For this image that is not your Dockerfile to change; it is nginx's, and the move is to 1.31-alpine, which upstream builds on a current Alpine.
Step 6: the application's own dependencies
OS packages have a branch index to be behind. Language packages have a registry, where "latest" is a different idea: a newer version always exists, and most of them are not a fix for anything. The SBOM gives you package URLs per ecosystem; deps.dev gives you, per package, the version the registry marks as default and the advisories per version, across npm, PyPI, Go, Maven, Cargo, NuGet and RubyGems:
# Language packages: the SBOM's purls against the registry, via deps.dev
jq -r '.artifacts[] | select(.type == "python") | [.name, .version] | @tsv' sboms/python.json |
while IFS="$(printf '\t')" read -r name version; do
latest=$(curl -s "https://api.deps.dev/v3/systems/pypi/packages/$name" \
| jq -r '[.versions[] | select(.isDefault)][0].versionKey.version')
echo "$name $version -> $latest"
donepackaging 26.3 -> 26.3.0
pip 24.0 -> 26.3.0
setuptools 79.0.1 -> 84.2.1
wheel 0.46.3 -> 0.48.0Use it as a ceiling, not a target. setuptools 79.0.1 in a three-day-old image is five releases behind PyPI's 84.2.1 and that is fine; the floor that matters is the scanner's fixed version, which says the lowest version that closes a known advisory. The distance between the two is how much of the gap is housekeeping. For an application image you build, the honest reading of the three numbers per package is: fixed version is a deadline, default version is a chore, and anything between is a judgement about major bumps.
One trap: the version the registry calls default is not always newer. For express, deps.dev marks 5.3.0 as the default and a 4.18.2 still running somewhere has two advisories against it, but the move from 4 to 5 is a major version with breaking changes, and the fix for those two advisories is on the 4.x line. Read the fixed version first.
Step 7: back to the workloads
Every finding so far is per digest. The question that follows is whose: which Deployment runs it, which Helm release installed it, whether the image is yours to rebuild or upstream's to re-tag. The pod's ownerReferences and its release label answer the first two:
# Which workloads run a digest, and which Helm release they belong to
kubectl get pods -A -o json | jq -r --arg d "sha256:62223d64" '
.items[] | .metadata as $m
| (.status.containerStatuses // [])[] | select(.imageID | contains($d))
| [$m.namespace, ((($m.ownerReferences // [])[0]) | if . then "\(.kind)/\(.name)" else "-" end),
($m.labels["app.kubernetes.io/instance"] // "-")] | @tsv' | sort -uThe third is the split that decides the work. For an image you build, an outdated base or package is a Dockerfile change and a rebuild. For a third-party image, it is an upgrade to a tag upstream already built, and until upstream builds one there is nothing to do but know. The vulnerable-package post does the full join from one package name to the Helm release, and the base-image post is about keeping the two kinds of work apart.
Doing it every day instead of once
Everything above is a point-in-time answer, and the three kinds of outdated move at three different speeds. Package indexes move daily, end-of-life dates are fixed years ahead, tags move when upstream feels like it. A script that runs weekly and diffs its own output is a reasonable version of this; it is also roughly what a vulnerability platform is.
StackRadar keeps one SBOM per running digest, taken from the nodes by an agent, and re-matches it as advisories land, so the fixable list updates without a new scan. Three of its views map onto the three kinds of outdated in this post:
- Application and Base image are the two buckets every findings table can be split into, so the packages your build added and the packages the base brought are counted apart (how the split is decided).
- The Fixes page lists the measured moves: "Move to" a newer tag that has already been scanned, with the number of findings it clears, or "Rebuild on" a newer base for an image you build. A measured move is one where both images' SBOMs were held and diffed; an unmeasured one may only say a newer version exists.
- End-of-life base is one of the reasons an image can have findings and no move. The server carries the distributions' end-of-life dates (Alpine, Debian, Ubuntu) and compares them with the clock; a release line it does not know is treated as supported, so the label is never a guess. The sibling label for a third-party image is "No newer image yet", which is the fact stated as itself.
For the one-off version from a laptop, the free, Apache-2.0 StackRadar CLI does steps 1, 2 and 5 in one command through your kubeconfig, with no agent in the cluster and nothing about the cluster sent to StackRadar:
brew install lockdep/tap/stackradar
stackradar scan --only-fixed # every running image, only findings that already have a fixed version
stackradar scan -o json > report.json # per image: package, installed version, fixed version, KEVIt will not tell you a base is end of life or a tag has moved; it tells you which running images have a fixed version waiting, which is the subset with a deadline. The live demo shows the Fixes page on a real cluster.
Frequently asked questions
How do I find outdated packages inside the containers running in my Kubernetes cluster?
List the image digests the kubelets report (status.containerStatuses[].imageID), generate an SBOM per digest with Syft, and compare the SBOM’s package versions with the distribution’s current package index for that release line: the APKINDEX for Alpine, or apt list --upgradable in a throwaway container for Debian and Ubuntu. Run Grype on the same SBOM to see which of the outdated packages have a published security fix. The post walks through each command.
Is an outdated dependency the same as a vulnerable one?
No, but on an image nobody has rebuilt they converge. In nginx:1.27-alpine, 25 of the 64 Alpine packages were behind the 3.21 branch and 20 of those 25 had advisories with fixes; the other five were tzdata, ca-certificates, apk-tools and alpine-release, behind but with nothing to exploit. Outdated is the wider set, vulnerable-with-a-fix is the subset that has a deadline attached.
How do I know if a container’s base image is end of life?
Read the distro field in the SBOM (Syft writes distro.id and distro.versionID from /etc/os-release) and look the release line up on endoflife.date, which has a JSON API: https://endoflife.date/api/v1/products/alpine-linux returns each cycle’s eolFrom date. Alpine 3.21 reached end of life on 1 November 2026, Debian 11 on 31 August 2026, Ubuntu 20.04 on 31 May 2025. Once a line is past that date, no new security fix will ever appear in its index.
Why does a fresh pull of an old tag still have outdated packages?
Because a tag is only rebuilt while its line is maintained. nginx:1.27-alpine was last built in April 2025, when 1.27 was still mainline; the tag has not moved since, so pulling it today gives you a nineteen-month-old filesystem. A tag of a maintained line, such as python:3.11-slim, is rebuilt regularly and comes down nearly current: three days old, one package behind.
Can I check outdated dependencies without pulling every image to my laptop?
Not from the Kubernetes API alone; it stores image references, not package lists. Something has to read each image’s filesystem once. That is either a CLI that pulls through your kubeconfig (Syft, Grype, Trivy, the StackRadar CLI) or an agent in the cluster that reads images from the nodes and keeps one SBOM per digest, which is what the StackRadar scanner and Trivy Operator do.
What is the difference between a package being behind and having a fix available?
Behind means the branch index has a newer build of the package. Fix available means an advisory names a version that resolves a specific vulnerability. Every fix is in a newer build, so fixed packages are a subset of behind packages, but the subset is the actionable one: it comes with a CVE identifier, a severity, and sometimes a CISA KEV deadline. The remaining behind packages are the ones a rebuild picks up for free.
More from the blog
All postsDependency-Track on Kubernetes: installing 5.x with the Helm chart, and feeding it from the cluster
Dependency-Track runs on Kubernetes from its official Helm chart, but it only analyses SBOMs you send it. Feeding it from the cluster is the work you build.
13 min read
How to find every pod running a vulnerable package across a Kubernetes cluster
Given a package name, list every pod that runs it, its Deployment or DaemonSet and its Helm release: one SBOM per running digest, a jq query and a digest join.
12 min read
docker sbom is gone: how to generate an SBOM from a Docker image now
Docker removed docker sbom and archived the plugin on 19 May 2026. Use docker scout sbom, Syft or Trivy instead: the commands, and why their counts differ.
10 min read
How to list every container image running in a Kubernetes cluster, and why the pod spec is the wrong place to look
The kubectl one-liners, and why they list the wrong thing: spec.image is a request, the kubelet’s imageID is what runs. A jq query lists it per pod and digest.
11 min read