Skip to content

kubevela/1.10.6-r0: cve remediation - #77701

Closed
octo-sts[bot] wants to merge 1 commit into
mainfrom
cve-kubevela-1.10.6-r0-33c6e8a7ff424e41ca981a74bb33b68c
Closed

kubevela/1.10.6-r0: cve remediation#77701
octo-sts[bot] wants to merge 1 commit into
mainfrom
cve-kubevela-1.10.6-r0-33c6e8a7ff424e41ca981a74bb33b68c

Conversation

@octo-sts

@octo-sts octo-sts Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

kubevela/1.10.6-r0: fix GHSA-9h84-qmv7-982p

Advisory data: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml


"Breadcrumbs" for this automated service

Inspected git repositories: https://github.com/kubevela/kubevela@v1.10.6

@octo-sts octo-sts Bot added automated pr request-cve-remediation go/bump p:kubevela GHSA-9h84-qmv7-982p P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. labels Jan 9, 2026
@octo-sts

octo-sts Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

📦 Build Failed: Missing Dependency

go: github.com/oam-dev/kubevela/cmd/core/app/hooks imports github.com/kubevela/pkg/util/singleton imports sigs.k8s.io/apiserver-runtime/pkg/builder imports sigs.k8s.io/apiserver-runtime/internal/sample-apiserver/pkg/cmd/server imports k8s.io/apiserver/pkg/util/version: module k8s.io/apiserver@latest found (v0.35.0), but does not contain package k8s.io/apiserver/pkg/util/version

Build Details

Category Details
Build System Go Modules
Failure Point go mod tidy command during gobump dependency update process

Root Cause Analysis 🔍

The k8s.io/apiserver module version v0.35.0 does not contain the required package k8s.io/apiserver/pkg/util/version that is being imported by the dependency chain. This is a missing package within an existing module, causing the Go module resolution to fail during the dependency update process.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: kubevela.yaml

  • add at line around line 22 (pipeline -> uses: go/bump -> with -> replaces section)
    Original:
replaces: github.com/docker/docker=github.com/moby/moby@v26.1.0+incompatible

Replacement:

replaces: |-
        github.com/docker/docker=github.com/moby/moby@v26.1.0+incompatible
        k8s.io/apiserver=k8s.io/apiserver@v0.31.12

Content:

Add k8s.io/apiserver version replacement to pin to a working version
Click to expand fix analysis

Analysis

The similar fix shows a pattern of addressing k8s.io/apiserver package version conflicts by using the "replaces" directive in the go/bump step. In the fixed example, when k8s.io/apiserver@latest (v0.33.4) was missing the required package k8s.io/apiserver/pkg/util/version, the solution was to replace it with a specific working version (v0.31.12) that contained the needed package. This approach pins the problematic dependency to a known working version rather than relying on the latest version which is missing required packages.

Click to expand fix explanation

Explanation

This fix addresses the root cause by replacing the problematic k8s.io/apiserver@v0.35.0 with v0.31.12, which is known to contain the required k8s.io/apiserver/pkg/util/version package. The similar fix demonstrated this exact approach worked for the same missing package issue in v0.33.4. By adding this replacement to the existing replaces section in the go/bump step, we override Go's module resolution to use a specific version that has the needed package structure. The v0.31.12 version was chosen based on the successful fix pattern, as it represents a stable version that maintains the required package structure before the breaking changes in later versions.

Click to expand alternative approaches

Alternative Approaches

  • Update the entire dependency chain to use newer compatible versions that don't rely on the removed package
  • Pin to an even earlier version of k8s.io/apiserver (like v0.30.x) if v0.31.12 still has issues
  • Add specific version constraints for the importing packages (sigs.k8s.io/apiserver-runtime) to versions compatible with newer k8s.io/apiserver versions

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts Bot added the ai/skip-comment Stop AI from commenting on PR label Jan 9, 2026
@octo-sts

octo-sts Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

This vulnerability remediation is stale and no longer needed. 👋

Advisory CGA-h266-vcqx-pqxq has the latest event type of "pending-upstream-fix"

View with: cg advisory show CGA-h266-vcqx-pqxq
Or view on GitHub: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml

ID:      CGA-h266-vcqx-pqxq
Package: kubevela
Aliases: CVE-2025-55199 GHSA-9h84-qmv7-982p
Events:
  - "scan/v1" at 2025-08-14 09:48:02 UTC
  - "pending-upstream-fix" at 2025-08-18 23:27:11 UTC

@octo-sts octo-sts Bot closed this Jan 12, 2026
@aborrero aborrero reopened this Jan 15, 2026
@aborrero
aborrero force-pushed the cve-kubevela-1.10.6-r0-33c6e8a7ff424e41ca981a74bb33b68c branch from e866cab to 09647b3 Compare January 15, 2026 11:40
@octo-sts

octo-sts Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor Author

This vulnerability remediation is stale and no longer needed. 👋

Advisory CGA-h266-vcqx-pqxq has the latest event type of "pending-upstream-fix"

View with: cg advisory show CGA-h266-vcqx-pqxq
Or view on GitHub: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml

ID:      CGA-h266-vcqx-pqxq
Package: kubevela
Aliases: CVE-2025-55199 GHSA-9h84-qmv7-982p
Events:
  - "scan/v1" at 2025-08-14 09:48:02 UTC
  - "pending-upstream-fix" at 2025-08-18 23:27:11 UTC

@octo-sts octo-sts Bot closed this Jan 15, 2026
@aborrero aborrero reopened this Jan 15, 2026
@aborrero
aborrero force-pushed the cve-kubevela-1.10.6-r0-33c6e8a7ff424e41ca981a74bb33b68c branch from 09647b3 to 0f1c912 Compare January 15, 2026 15:56
@octo-sts

octo-sts Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor Author

This vulnerability remediation is stale and no longer needed. 👋

Advisory CGA-w648-9496-24px has the latest event type of "FIXED"

View with: cg adv show CGA-w648-9496-24px

ID:      CGA-w648-9496-24px
Package: kubevela
Aliases: CVE-2025-55199 GHSA-9h84-qmv7-982p GO-2025-3887 CGA-gpwr-gp4r-hx6m
Events:
  - "DETECTION" at 2025-08-14 09:48:02 UTC
  - "PENDING_UPSTREAM_FIX" at 2025-08-18 23:27:11 UTC
  - "FIXED" at 2025-11-07 09:44:56 UTC

@octo-sts octo-sts Bot closed this Jan 15, 2026
octo-sts Bot pushed a commit that referenced this pull request May 20, 2026
Co-authored-by: staging-update-bot <staging-update-bot@chainguard.dev>

Export:  a7f5b29e33f0e37dc0abd197a8401e66953e90bf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR automated pr cve-pr-closer/v2-adv-disagreement GHSA-9h84-qmv7-982p go/bump p:kubevela P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. request-cve-remediation service:cve-pr-closer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants