Registry Mirror
Skip to content

Conversation

@danielle-mustillo

@danielle-mustillo danielle-mustillo commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Why

The v0.10.6 runtime images ship HIGH and CRITICAL CVEs. Most are fixed by rebuilding on wolfi-base:latest. Two image changes fix the rest. The PR also fixes the flaky rolling upgrade test so CI on this branch can go green.

What changed

  • python/Dockerfile.full installs npm 11.21.3, which bundles a fixed undici for app-full.
  • skills-init moves from alpine:3.24 to wolfi-base:latest, the base the other images already use. It adds openssh-keyscan for SSH git skills.
  • The rolling upgrade test passes --set controller.replicas=2 to its upgrade.

Scope

  • The flake came from a mistake in the test. Its upgrade dropped from 2 controller replicas to 1, which an upgrade should never do. This PR fixes the test so it keeps 2 replicas, and it leaves the chart alone. An operator who makes the same mistake (usually by upgrading without --reuse-values) still sees the old controller restart once. The kagent UI and API can then be unavailable for up to about 30 seconds before they recover on their own, with no data lost.
  • CVE-2023-54404 in zod (app-full, golang-adk-full) needs no fix, because it is not a real vulnerability. CVE.org rejected it on 2026-10-28: the extra memory use is expected validator behavior. grype still reports it, because the GitHub advisory GHSA-mrhx-c7xc-m3w5 is not withdrawn yet.
  • The acp-sandbox-* images keep their Debian base, because on 0.x only the Substrate backend uses them.

Blast Radius

skills-init grows from 64.7 MB to 128 MB, because git on Wolfi pulls in more libraries. Each node pulls the larger image once.

Verification

  • Built the five changed images and checked each fixed package version inside them.
  • Ran an Agent with HTTPS, SSH, and OCI skills on kind with the new skills-init. All three skills load.
  • Ran the rolling upgrade test on kind, 0.9.12 to this branch. The old leader exited in 0 of 8 runs with the fix, and in 8 of 9 without it.

Appendix: CVEs fixed

Image CVE Package v0.10.6 Built from this branch Fixed by
app-full CVE-2026-109383 (CRITICAL), CVE-2026-109869, CVE-2026-109924, CVE-2026-109932, CVE-2026-87018 undici (in npm) 6.29.0 6.29.1 npm bump
app-full CVE-2026-116592 (CRITICAL), CVE-2026-116630, CVE-2026-120222, CVE-2026-120415, CVE-2026-120423, CVE-2026-120474 undici (in Wolfi's node-gyp) 8.12.3 8.12.4 rebuild
app, app-full, golang-adk-full, ui CVE-2026-84243 glibc 2.44-r13 2.44-r23 rebuild
app-full, golang-adk-full CVE-2026-123863 nodejs-26 26.13.0 26.13.1 rebuild
ui CVE-2026-123863 nodejs-24 24.22.2 24.22.3 rebuild
skills-init CVE-2026-105437, CVE-2026-111760, CVE-2026-114466 git 2.54.0-r0 2.56.1-r1 Wolfi base
skills-init CVE-2026-4738 (CRITICAL) zlib 1.3.2-r1 1.4-r0 Wolfi base

Signed-off-by: Danielle Mustillo <danielle.mustillo@solo.io>
@github-actions github-actions Bot added the bug Something isn't working label Nov 19, 2026
@danielle-mustillo
danielle-mustillo marked this pull request as ready for review November 19, 2026 19:32
@danielle-mustillo
danielle-mustillo requested a review from a team as a code owner November 19, 2026 19:32
@danielle-mustillo
danielle-mustillo marked this pull request as draft November 19, 2026 19:34
@danielle-mustillo danielle-mustillo changed the title fix(deps): bump npm in the full Python image and rebuild for CVEs on release/v0.10.x fix(deps): bump npm in the full Python image and move skills-init to wolfi-base for CVEs on release/v0.10.x Nov 19, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Nov 19, 2026
Puts skills-init on the same base as the app, golang-adk and ui images,
so one rebuild picks up OS package fixes for all of them. Drops the
redundant apk upgrade and ca-certificates (wolfi-base:latest is rebuilt
daily and ships ca-certificates-bundle), and adds openssh-keyscan, which
Wolfi packages separately from openssh-client.

Signed-off-by: Danielle Mustillo <danielle.mustillo@solo.io>
The rolling upgrade test installs the previous release with 2 controller
replicas, but upgrades with `make helm-install-provider`, which sets no
replica count. The chart then falls back to 1 replica. On release/v0.10.x
that also turns leader election off and deletes the leader-election Role.

The old leader still has leader election on, so it is denied its Lease,
fails to renew within the deadline, and exits ("leader election lost").
The scale-down to 1 has already removed the other old pod. When the new
pod gets Ready before the crashed old pod comes back, no old pod is Ready
after the migration and the poll times out after 6 minutes with
"target schema was not observed while old controller pods were still
ready".

Pass --set controller.replicas=2 to the upgrade, as an operator doing a
rolling upgrade would. The Role stays, no old pod exits, and the rollout
keeps both old pods until the new one is Ready.

Signed-off-by: Danielle Mustillo <danielle.mustillo@solo.io>
Signed-off-by: Danielle Mustillo <danielle.mustillo@solo.io>
@danielle-mustillo danielle-mustillo changed the title fix(deps): bump npm in the full Python image and move skills-init to wolfi-base for CVEs on release/v0.10.x fix(deps): fix v0.10.6 image CVEs and the rolling upgrade test flake on release/v0.10.x Nov 19, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Nov 19, 2026
@danielle-mustillo danielle-mustillo added the testing Additional testing required label Nov 19, 2026
@blacksmith-sh

This comment was marked as outdated.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working testing Additional testing required labels Nov 19, 2026
@danielle-mustillo
danielle-mustillo marked this pull request as ready for review November 19, 2026 22:35
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Nov 19, 2026

@iplay88keys iplay88keys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI-generated review. I reviewed the findings before posting.

The image changes look good. I checked wolfi-base with git, openssh-client and openssh-keyscan as UID 1001. The CA bundle is present, an HTTPS clone works, and ssh-keyscan works. I also confirmed that the chart removes the leader-election Role at 1 replica, as the new comment says.

One question about the Scope section: a helm upgrade from 2 replicas to 1 restarts the old controller. Is there an issue on main to track this chart behavior?


### Stage 1: runtime
FROM alpine:3.24
FROM $BASE_IMAGE_REGISTRY/chainguard/wolfi-base:latest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional follow-up, not a regression: the build-skills-init target in the Makefile does not pass $(TOOLS_IMAGE_BUILD_ARGS). So a BASE_IMAGE_REGISTRY override does not reach this FROM or the builder stage. The other image targets pass these build args. The old alpine runtime stage also ignored the override, so nothing breaks today.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless you feel strongly about this one, I might opt out of this one to keep the surface area of risk for this PR lower. But if you want it I can do it.

@danielle-mustillo

Copy link
Copy Markdown
Contributor Author

Thanks for the review, for the scope question, I didn't create one since, to me

  1. Scaling down during an upgrade is undefined behaviour and pretty much something we won't fix. Creating an issue without an action seems to defeat the purpose.

  2. The test wasn't design to handle a scale down. The test creates a condition where there is a race condition between the schema being applied to the database (the test checks the old controller pods are ready right after that, and that check fails) and the old controller pods crashing because the leader-election Role is removed. The test specifically checks for old pods.

  3. Given this behaviour only exists on 0.10.x, 1.x does not exhibit the behaviour, I think its pretty mute point overall.

@danielle-mustillo
danielle-mustillo merged commit f82ac99 into release/v0.10.x Nov 20, 2026
91 of 92 checks passed
@danielle-mustillo
danielle-mustillo deleted the danielle-mustillo/cve-app-images branch November 20, 2026 21:09
iplay88keys pushed a commit that referenced this pull request Nov 23, 2026
….10.x (#3779)

Fixes CVEs in the `app`, `app-full` and `tools` images on
`release/v0.10.x`.

## What changed

- `python/uv.lock`: `mcp` (Python SDK) 1.28.1 -> 1.30.0, for
CVE-2026-115563 (the OAuth client could send credentials to an
authorization server chosen by the MCP server). `kagent-adk` already
allows it (`mcp>=1.25.0`). `python/Dockerfile` and
`python/Dockerfile.full` install with `uv sync --frozen`, so both images
pick it up.
- `helm/kagent/Chart-template.yaml`: `kagent-tools` chart 0.3.1 ->
0.3.2. kagent-tools 0.3.2 bundles helm 4.3.2 and cilium-cli 0.20.3
(kagent-dev/tools#118), which fix CVE-2026-111943, CVE-2026-116587 and
CVE-2026-116591 in the `tools` image.

## Verification

- `uv lock --upgrade-package mcp` changes only the `mcp` entry.
- `pytest packages/kagent-adk packages/kagent-core`: 519 passed. The 9
failures are TLS e2e tests in `test_tls_e2e.py`; the same 9 fail on
`release/v0.10.x` without this change.
- `make helm-test` pulls kagent-tools 0.3.2; 313 chart tests pass. The
chart renders `ghcr.io/kagent-dev/kagent/tools:0.3.2`.
- The released `tools:0.3.2` image has helm 4.3.2 (go1.27.4), cilium-cli
0.20.3 (go1.27.3), and istioctl with go-jose 4.1.7 and
klauspost/compress 1.20.3.

## Release note

```release-note
Updated `mcp` to 1.30.0 and `kagent-tools` to 0.3.2 to fix CVE-2026-115563, CVE-2026-111943, CVE-2026-116587 and CVE-2026-116591. A `RemoteMCPServer` whose URL redirects to another host or port now fails to connect; set its URL to the redirect target.
```

/kind fix

Follow-up to #3738.

---------

Signed-off-by: Danielle Mustillo <danielle.mustillo@solo.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants