Auditing Dependencies
Status: 🟢 Implemented —
kargo auditqueries the live OSV database. ⚪ The[audit]policy section (ignore lists, severity gates) is planned.
kargo audit
Every artifact in your resolved graph is checked against OSV, Google's open vulnerability database, which aggregates GitHub Security Advisories, the Maven ecosystem's advisories, and others.
Scanning 47 packages
GHSA-xxxx-yyyy-zzzz high
com.fasterxml.jackson.core:jackson-databind 2.13.0
Deserialization of untrusted data
Fixed in 2.13.4.2
https://osv.dev/GHSA-xxxx-yyyy-zzzz
via io.ktor:ktor-serialization-jackson 2.3.0
1 vulnerability found (1 high)
The via line is the part that matters in practice: it names what pulled the
vulnerable artifact in, which tells you whether you can fix it by bumping one
direct dependency.
Filtering by severity
kargo audit --fail-on high # exit non-zero only for high and critical
kargo audit --fail-on critical
kargo audit --fail-on low # the default: anything at all fails
Severities, lowest to highest: low, moderate, high, critical.
Pick the gate that matches what you will actually act on. An audit that fails
every build on an unfixable low in a test-only dependency gets silenced
entirely, which is worse than a gate set at high.
Fixing what it finds
kargo tree --why jackson-databind # find the path in
kargo update jackson-databind # take the newest compatible version
kargo update --major jackson-databind # if the fix is a major bump
When the vulnerable artifact arrives transitively and the parent has not updated, declare the fixed version directly:
[dependencies]
jackson-databind = "com.fasterxml.jackson.core:jackson-databind:2.13.4.2"
Nearest-wins resolution means a direct declaration beats any transitive one. This is the standard override, and it works today.
Policy
Status: ⚪ Planned.
[audit]
ignore = [
"GHSA-xxxx-yyyy-zzzz", # test-only dependency, not reachable at runtime
]
fail-on = "high"
Every entry in ignore should carry a comment saying why. An unexplained ignore
list is indistinguishable from an abandoned one, and the next person cannot tell
whether the risk was assessed or just silenced.
In CI
- run: kargo audit --fail-on high
Two placements, and they answer different questions:
| Where | Question answered |
|---|---|
| On every pull request | Did this change introduce a vulnerability? |
| On a daily schedule | Did a vulnerability get published against code we already shipped? |
The scheduled run is the one teams skip and then need. Advisories are published against versions you already depend on, with no commit on your side to trigger a PR build.
Limitations worth knowing
kargo audit tells you a vulnerable version is in your graph. It does not tell
you the vulnerable code path is reachable from your application. A
deserialization flaw in a library you only call for one trivial helper may not be
exploitable in your context — but reachability analysis is not something a
dependency graph can answer, so the audit does not pretend to.
It also requires network access, and a lockfile that reflects your manifest. Run
kargo lock first if resolution is stale.
Other supply-chain checks
kargo tree --licenses # what you are shipping, legally
kargo tree --duplicates # the same library at several versions
kargo fetch --verify # re-verify every cached checksum
Checksums are verified on every download and every cache read, not only when you ask — a tampered or truncated artifact fails the build rather than producing a confusing compiler error.
Next
- Dependencies — updating and overriding
- Continuous Integration