Skip to content

fix(security): bump the pinned gh for CVE-2026-97054 #6352

Closed
0 of 3 issues completed
Closed

Description

@dan-petty

Problem

The Trivy scan of the image jobs Service Image, Runner Image and MCP Server Image fails on each pull request that builds the images. It finds one HIGH vulnerability in usr/local/bin/gh:

  • CVE-2026-97054 in the Go stdlib v1.27.3, status fixed, fixed in 1.26.11 and 1.27.4. Title: "For HTTP/1 servers, when MaxBytesReader's limit is exceeded, ...".

The Dockerfile pins gh v2.103.3 (Dockerfile:44 and Dockerfile:47). That build uses Go 1.27.3.

Evidence: pull request #6351 at head edf9ef38b7d1, jobs 135275406750 (Service Image), 135275407074 (Runner Image) and 135275406930 (MCP Server Image), each with Total: 1 (HIGH: 1, CRITICAL: 0) and ##[error]Process completed with exit code 1. The change of #6351 touches no image file. The image jobs are not required checks, so the failure does not block a merge, but each pull request that changes src/ shows three red checks.

Expected behavior

  • The image pins a gh release that is built with Go 1.27.4 or later, and the three image jobs pass the Trivy scan.
  • If no such gh release exists yet, the rule of SECURITY.md for a finding with no fix applies.

Proposed design

Problem statement

Update all five pinned tools, not only gh; the three image scans are the gate. The Service Image, Runner Image and MCP Server Image jobs fail the Trivy scan on CVE-2026-97054 in Go stdlib. The scan finds the flaw in promtool, tofu, trivy, actionlint and gh. The change updates each pin to a release built with Go 1.26.11 or 1.27.4 or later, or adds a dated Trivy ignore entry per SECURITY.md when no such release exists.

Acceptance criteria

Requirement: Runner image pins use a fixed Go build

For each vulnerable tool that has a release built with Go 1.26.11 or 1.27.4 or later, the Dockerfile MUST pin that release.

Scenario: Runner Image job scans the rebuilt image

  • WHEN the Runner Image job builds the image from the updated Dockerfile and runs Trivy
  • THEN the job passes and the scan reports no CVE-2026-97054 in gh, actionlint, trivy, tofu or promtool

Requirement: Service image has no CVE-2026-97054

The Service image MUST contain no HIGH or CRITICAL finding for CVE-2026-97054.

Scenario: Service Image job scans the rebuilt image

  • WHEN the Service Image job builds the image and runs Trivy
  • THEN the job passes and the scan reports no CVE-2026-97054

Requirement: MCP Server image has no CVE-2026-97054

The MCP Server image MUST contain no HIGH or CRITICAL finding for CVE-2026-97054.

Scenario: MCP Server Image job scans the rebuilt image

  • WHEN the MCP Server Image job builds the image and runs Trivy
  • THEN the job passes and the scan reports no CVE-2026-97054

Requirement: Unfixed tool has a dated suppression

When no release of a vulnerable tool is built with Go 1.26.11 or 1.27.4 or later, the project MUST add a dated Trivy ignore entry for CVE-2026-97054 on that tool path, with a reason and an expiry.

Scenario: No fixed release exists for one tool

  • WHEN the Runner Image job runs Trivy with the repository .trivyignore.yaml
  • THEN the job passes and the Trivy log shows the dated ignore entry for CVE-2026-97054 on that tool path

Existing Tool Considered

No alternatives check has run. Renovate is an open, maintained tool that watches the Dockerfile pins, but it does not show that a release uses a fixed Go build. The upstream releases of gh, actionlint, Trivy, OpenTofu and Prometheus cover the need; the repository builds no replacement. A tool with no fixed release gets a path-specific dated Trivy ignore entry per SECURITY.md.

Key questions

  • Which pins cause the image scan failure?: The scan finds CVE-2026-97054 in five pinned tools: promtool 3.16.0, tofu 1.13.9, trivy 0.76.2, actionlint and gh. A new gh release alone does not clear the three image jobs. [sources: tests/invariants/test_runner_image.py]
  • Which image jobs must pass?: The Service Image, Runner Image and MCP Server Image jobs must pass. The MCP Server image also reports Go 1.26.10. [sources: .github/workflows/ci.yml, tests/invariants/test_service_image.py, tests/invariants/test_mcp_server_image.py]
  • How should the change clear the finding?: Update each pin to the latest stable release built with Go 1.26.11 or 1.27.4 or later. If no such release exists for a tool, add a path-specific dated Trivy ignore entry in .trivyignore.yaml with a reason and an expiry, per SECURITY.md. (best practice) [sources: SECURITY.md, .trivyignore.yaml]
    • Chosen: Fixed upstream release, else dated ignore. Upstream releases add no project build code, and the dated ignore keeps the rule of SECURITY.md for a tool with no fix.
    • Rejected: Build each tool from source. It adds a build step and maintenance cost that the upstream release avoids.
    • Rejected: Blanket Trivy ignore for all five tools. It hides fixable findings and does not name the tool path.
    • Rejected: Newest tag without a build check. The tag may still use Go 1.27.3 or Go 1.26.10.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Sub-issues

Sub-issues

0 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    type/bug
    scope/security
    source/agent
    status/new
    effort/low
    value/high
    on Nov 19, 2026
  2. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. Three image jobs fail on every pull request that builds images, causing CI to fail. The failed run 135275406750 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Related: fix(ci): bump the pinned gh and drop the CVE-2026-78661 ignore #3920, which asks for a different change. Both bump the pinned gh to clear a HIGH CVE found by Trivy, but #3920 targets CVE-2026-78661 in golang.org/x/net while this candidate targets CVE-2026-97054 in Go stdlib.
  3. added
    priority/p1-high
    on Nov 19, 2026
  4. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    The same scan on pull request #6333 (head 3ea6dfe9d, job 135279165850, Runner Image) finds CVE-2026-97054 (Go stdlib v1.27.3) in five binaries, not only in gh:

    • opt/devops-tools/tools/promtool/3.16.0/promtool
    • opt/devops-tools/tools/tofu/1.13.9/tofu
    • opt/devops-tools/tools/trivy/0.76.2/trivy
    • usr/local/bin/actionlint
    • usr/local/bin/gh

    Each gives Total: 1 (HIGH: 1, CRITICAL: 0). A new gh release alone does not make the three image jobs pass: each of the five pins needs a build with Go 1.26.11 or 1.27.4, or the rule of SECURITY.md for a finding with no fix.

  5. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    The same scan fails on pull request #6353 (head 86f22e869), which changes no image file. Jobs 135284917850 (Service Image), 135284918220 (Runner Image) and 135284918367 (MCP Server Image) each end with Total: 1 (HIGH: 1, CRITICAL: 0) on CVE-2026-97054 in the Go stdlib: v1.27.3 in the Service and Runner images, and v1.26.10 and v1.27.3 in the MCP Server image.

  6. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  7. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    The same scan fails on pull request #6326 (head c4115e6e2), which changes no image file: jobs 135291113295 (Service Image), 135291113169 (Runner Image) and 135291113083 (MCP Server Image), each on CVE-2026-97054 in the Go stdlib. The binaries are the same as in the comments above (gh, actionlint, tofu, trivy and the others).

  8. added
    owner/agent
    on Nov 19, 2026
  9. added
    status/in-progress
    and removed
    status/new
    on Nov 19, 2026
  10. removed
    status/in-progress
    owner/agent
    on Nov 19, 2026
  11. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor
  12. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-19 05:06 UTC

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

    effort/lowpriority/p1-highscope/securitysource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions