fix: remediate CVE-2022-28948 in plugins/buildx — bump gopkg.in/yaml.v3 to v3.0.1 - #120
Open
vinayakharness2026 wants to merge 1 commit into
Open
Conversation
Author
Vuln Remediation Agent Scan ResultsTest image: CVE Status
Trivy Scan Delta
Note: gopkg.in/yaml.v3 is a transitive test dependency (via testify). It is not embedded in the released binary at runtime (Trivy SBOM shows yaml.v3 v3.0.1 in test image - confirming go.mod change takes effect). CVE-2022-28948 does not appear in either scan as it's only detectible when yaml.v3 is linked into a deployed binary. The go.mod bump from Recommendation: REVIEW — all changes correct, Trivy scan confirms no regressions, OnDemand scan unavailable in headless mode. |
vinayakharness2026
marked this pull request as ready for review
July 30, 2026 07:36
vinayakharness2026
marked this pull request as draft
July 30, 2026 09:16
vinayakharness2026
marked this pull request as ready for review
July 31, 2026 02:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vulnerability Remediation: plugins/buildx
Team: ci (Harness CI Platform)
Tickets: CI-22906
Test image:
vinayakharness/buildx-test:buildx-1.3.26--debugOnDemand scanner runs (Harness https://harness0.harness.io/):
Summary
1 CVE (CVE-2022-28948, HIGH) addressed:
gopkg.in/yaml.v3upgraded from pre-releasev3.0.0-20210107192922-496545a6307btov3.0.1ingo.mod/go.sum. The Trivy local scan confirms CVE-2022-28948 is not present in either the baseline or test image (Trivy does not flag this CVE for this Go module's pre-release version string), and no new HIGH/CRITICAL CVEs were introduced by the change. The CVE fix is ingopkg.in/yaml.v3 v3.0.1which is the minimum patched release. OnDemand (Prisma Cloud) scan could not be triggered autonomously in this pipeline session due to interactive confirmation being required by the Harness MCP; the PR is left as DRAFT pending a manual OnDemand scan run. RECOMMENDATION: REVIEW.CVE Delta — Trivy (local scan)
Per-Ticket CVE Status
CI-22906 — HIGH: CVE-2022-28948: Upgrade gopkg.in/yaml.v3 in plugins/buildx to v3.0.1
Summary:
gopkg.in/yaml.v3is an indirect dependency ofgithub.com/drone-plugins/drone-buildx. The version pinned on master (v3.0.0-20210107192922-496545a6307b) is a pre-release version that predates thev3.0.1patch which fixes CVE-2022-28948 (panic on crafted YAML input). This PR pins the dependency tov3.0.1— the minimum safe release — ingo.modand regeneratesgo.sum. The binary is compiled intodrone-dockerwhich is embedded into theplugins/buildximage.Code changes for this ticket:
go.mod:gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect→gopkg.in/yaml.v3 v3.0.1 // indirectgo.sum:gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=and/go.modhashChanges Made
go.modgopkg.in/yaml.v3indirect dep:v3.0.0-20210107192922-496545a6307b→v3.0.1go.sumVersion selection rationale:
gopkg.in/yaml.v3 v3.0.1is the first and minimum release that patches CVE-2022-28948. No major version boundary was crossed (bothv3.0.0-preandv3.0.1are in the v3 major series). The pre-release version was the only available v3 indirect pin before the formalv3.0.1release.