Skip to content

fix(security): the service image ships a gh built with go 1.27.2 or later, and the two go stdlib ignores are dropped #1492

Description

@dan-petty

Problem

Checked at release/v0.2.31 (e1dbc48).

  • The Service image installs gh v2.102.0 (Dockerfile:17-20), the newest GitHub CLI release (2026-09-30). It is built with Go 1.27.1 (toolchain go1.27.1 in cli/cli's go.mod at v2.102.0).
  • Trivy fails the image on two HIGH Go standard-library CVEs in /usr/local/bin/gh, both fixed in Go 1.27.2: CVE-2026-78667 (net/http, denial of service via a crafted HTTP message) and CVE-2026-97031 (crypto/tls, denial of service). This stopped service:v0.2.31 from publishing on 2026-10-09 (Release Orchestration run 37937614303).
  • cli/cli moved its toolchain to Go 1.27.2 on trunk on 2026-10-09 ("Bump Go to 1.27.2"), so the next release, expected as v2.103.0, carries the fix. Until it ships, both CVEs are ignored in .trivyignore with exp:2026-10-23 (owner decision, 2026-10-09; low exposure: gh is a client, and both are DoS-only).

Proposed remedy

  • When a gh release built with Go 1.27.2 or later ships, bump the Dockerfile's gh URL and --checksum to it, and delete the two .trivyignore entries.

Acceptance criteria

  • The Dockerfile pins a gh release whose go.mod toolchain is Go 1.27.2 or later, with its SHA-256.
  • .trivyignore no longer lists CVE-2026-78667 or CVE-2026-97031, and the Service image scan passes.
  • Done before 2026-10-23, when the ignore entries expire and the scan fails again.

Proposed design

Problem statement

The Service image installs gh v2.102.0, built with Go 1.27.1. Two HIGH CVEs (CVE-2026-78667 and CVE-2026-97031) exist in the bundled Go standard library. Both are suppressed in .trivyignore with an expiry of 2026-10-23. When the expiry passes, the Trivy scan fails and blocks publishing. The fix is to bump gh to a release built with Go 1.27.2 or later and remove the two ignore entries.

Acceptance criteria

  • Criterion 1: The Dockerfile pins a gh release built with Go 1.27.2 or later, with its SHA-256 checksum.
    Verification: Read the Dockerfile and confirm the gh download URL points to a release whose go.mod declares toolchain go1.27.2 or later, and that the --checksum flag matches the published SHA-256.
  • Criterion 2: .trivyignore no longer lists CVE-2026-78667 or CVE-2026-97031.
    Verification: Run grep for both CVE IDs in .trivyignore and confirm neither appears.
  • Criterion 3: The Service image Trivy scan passes with no HIGH or CRITICAL findings.
    Verification: Build the Service image and run the Trivy scan. Confirm the scan exits with status 0 and reports no HIGH or CRITICAL vulnerabilities.
  • Criterion 4: The change is delivered before 2026-10-23.
    Verification: Confirm the pull request merge date is before 2026-10-23.

Key questions

  • What is the owner decision on suppressing the two CVEs in .trivyignore?: Both CVE-2026-78667 and CVE-2026-97031 are suppressed in .trivyignore with exp:2026-10-23. The owner judged the exposure low because gh is a client and both CVEs are DoS-only. (proposed)

Open questions

  • Which gh release carries the Go 1.27.2 fix? (missing verified source)

Fit

Fits in one pull request.

Suspected block

Waiting on the next gh release (expected v2.103.0) built with Go 1.27.2 or later.

Dependencies

None.

Activity

  1. added
    type/security
    scope/security
    source/agent
    on Oct 9, 2026
  2. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. Two HIGH CVEs with a 2026-10-23 expiry deadline, but exposure is low (client-side, DoS-only) and the fix is blocked on an external release. The failed run 37937614303 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 on the board.
    • Value: Medium. Removes two HIGH CVEs from the production image and unblocks the release pipeline, but the affected tool is a client with DoS-only impact.
    • Effort: Low. Bump one URL and checksum in the Dockerfile and delete two lines from .trivyignore once the upstream release ships.
  3. dan-petty commented on Oct 26, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P1-High. The issue involves high severity CVEs that block publishing of the service image.
    • Value: High. Fixing these CVEs improves the security posture of the project's shipped artifacts.
    • Effort: Low. The fix only requires updating the gh version and removing ignore entries, which is a low-effort change.
    • Related: fix(docker): the service image ships a checksum-pinned kubectl, so the Service's cut passes the Argo CD gate #1638, which asks for a different change. Both items fix issues with the service image. The candidate fixes security CVEs in gh, while #1638 ensures kubectl is available in the image.
  4. dan-petty commented on Oct 27, 2026

    @dan-petty
    OwnerAuthor

    Refine cannot set this item to Ready at cc34caa until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Which gh release carries the Go 1.27.2 fix? (missing verified source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope/securitysource/agenttype/security

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions