Skip to content

source/github: go-github v39 pulls in unmaintained golang.org/x/crypto/openpgp (GO-2026-5932) #1410

Open

Description

@alexfalkowski

Summary

The GitHub source driver (source/github) pins github.com/google/go-github/v39, which transitively pulls golang.org/x/crypto/openpgp into the build graph. That package is the subject of GO-2026-5932:

The golang.org/x/crypto/openpgp package is unsafe by design, has numerous known security issues, is not maintained, and should not be used.

The advisory is module-level with no fixed version and no specific vulnerable symbol, so govulncheck reports it for anyone whose build imports it — including every downstream user who enables the github source driver. It cannot be cleared by avoiding a code path; the package has to leave the module graph.

Where it comes from

source/github/github.go imports github.com/google/go-github/v39/github. go-github v39 references golang.org/x/crypto/openpgp in its commit-signature verification code (google/go-github#2317). The source driver only calls the repository-contents API (Repositories.GetContents / DownloadContents) and never touches the signing path, but govulncheck still surfaces the finding because openpgp is present in the build.

Impact

  • Downstream services that run govulncheck (e.g. as a CI gate) fail on GO-2026-5932 purely by importing the github source driver.
  • There is no suppression that isn't a policy exception, since the advisory has no fixed version.

Activity

  1. modified the milestones: v4.20.0, v4.21.0 on Sep 4, 2026
  2. added a commit that references this issue on Sep 15, 2026
    e48a3a0
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions