Skip to content

fix: Security Scan fails on Go 1.26.8, golang.org/x/net v0.58.0 and amqp091-go v1.13.0 CVEs #81

Closed

Description

@nisargabd

Problem

The Security Scan job (make trivy-gate) fails on every branch, It has been red on main since 2026-09-15. Trivy 0.74 reports 13 findings (4 in trivy-deps.sarif, 9 in trivy-image.sarif):

Package Installed Fixed Findings
Go stdlib (toolchain) 1.26.8 1.26.9 9 (4 HIGH, 5 MEDIUM): CVE-2026-78667, -78669, -97031, -56866, -78663, -94439, -94448, -97032, -56857
golang.org/x/net v0.58.0 v0.60.0 3 (1 HIGH, 2 MEDIUM): CVE-2026-78669, -78663, -97032
github.com/rabbitmq/amqp091-go v1.13.0 v1.14.0 1 MEDIUM: CVE-2026-107386

Failing run: https://github.com/OpenAgriNet/network-adapter/actions/runs/38214427678/job/114695729451

Fix

  • go.mod: go 1.26.8 → go 1.26.9. CI reads the version from go-version-file: go.mod, so the workflows pick it up without changes.
  • go get golang.org/x/net@v0.60.0 github.com/rabbitmq/amqp091-go@v1.14.0, then go mod tidy. x/net v0.60.0 also requires newer golang.org/x/crypto (v0.57.0), x/sys (v0.48.0), x/text (v0.42.0) and x/sync (v0.23.0).
  • Dockerfile.adapter and Dockerfile.adapter-with-plugins: golang:1.26.8-bookworm → golang:1.26.9-bookworm. The image binary is built with this toolchain, so the image scan stays red without it.
  • README: change the "Go 1.26.8 or higher" note to 1.26.9.

Stay on the 1.26 line. 1.27.2 also fixes these CVEs, but moving to a new minor Go release is a separate decision.

Acceptance criteria

  • make build and make test pass on Go 1.26.9
  • make trivy-deps, make trivy-image and make trivy-gate report 0 findings
  • Security Scan is green on the PR
  • No application code changes

Activity

  1. self-assigned this
    on Oct 12, 2026
  2. added theissue type on Oct 12, 2026
  3. added a commit that references this issue on Oct 13, 2026
  4. nisargabd commented on Oct 13, 2026

    @nisargabd
    CollaboratorAuthor

    The version vulnerability has been fixed and PR got merged

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions