Skip to content

Update golang.org/x/net in the Go reference app and except GO-2026-5932 - #365

Merged
NormB merged 1 commit into
mainfrom
fix/go-deps-cves
Oct 15, 2026
Merged

NormB merged 1 commit into
mainfrom
fix/go-deps-cves

Conversation

@NormB

@NormB NormB commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Closes the Trivy alerts on reference-apps/golang/go.mod.

Alert Advisory Package Action
#205 CVE-2026-78669 (high) golang.org/x/net v0.58.0, fixed 0.60.0 bumped to v0.61.0
#206 CVE-2026-78663 (medium) golang.org/x/net bumped to v0.61.0
#207 CVE-2026-97032 (medium) golang.org/x/net bumped to v0.61.0
#208 CVE-2026-78659 golang.org/x/net bumped to v0.61.0
#209 CVE-2026-78660 golang.org/x/net bumped to v0.61.0
#182 GO-2026-5932 golang.org/x/crypto (no fixed version) .trivyignore.yaml entry, expires 2027-01-15
  • go get golang.org/x/net@v0.61.0 also raises x/crypto 0.56.0 → 0.58.0, x/sync 0.22.0 → 0.24.0, x/sys 0.48.0 → 0.49.0, x/text 0.41.0 → 0.43.0. osv.dev (queried 2026-10-15) lists no advisories for x/net 0.61.0, x/sync 0.24.0, x/sys 0.49.0, x/text 0.43.0; for x/crypto 0.58.0 it lists only GO-2026-5932.
  • GO-2026-5932 has no fix in any x/crypto release: it marks golang.org/x/crypto/openpgp as unmaintained. go mod why golang.org/x/crypto/openpgp reports "main module does not need package". The exception is scoped to reference-apps/golang/go.mod, and the Trivy repository scan now reads .trivyignore.yaml through the action's trivyignores input.
  • The advisories are in modules, not the standard library, so the Go toolchain (go 1.26.0 in go.mod, golang:1.27-alpine in the Dockerfile) is unchanged.

Checks: go build ./..., go vet ./..., go test ./... pass. Trivy 0.74.0 fs . on this branch reports GO-2026-5932 as the only vulnerability without the ignore file and none with it. The pre-commit hooks pass on the changed files; detect-secrets moved one baseline line number in security.yml.

Trivy reported five advisories against golang.org/x/net v0.58.0
(CVE-2026-78669 high; CVE-2026-78663 and CVE-2026-97032 medium;
CVE-2026-78659 and CVE-2026-78660 unrated), all fixed in 0.60.0.
`go get golang.org/x/net@v0.61.0`, the newest release, also raises
golang.org/x/crypto to v0.58.0, x/sync to v0.24.0, x/sys to v0.49.0
and x/text to v0.43.0. osv.dev lists no advisories for x/net 0.61.0,
x/sync 0.24.0, x/sys 0.49.0 or x/text 0.43.0.

The sixth alert, GO-2026-5932, has no fixed version: it marks the
golang.org/x/crypto/openpgp packages as unmaintained in every release
of x/crypto, including v0.58.0. `go mod why
golang.org/x/crypto/openpgp` reports that the main module does not
need the package. The entry in .trivyignore.yaml says so, scoped to
reference-apps/golang/go.mod and expiring 2027-01-15, and the
repository scan in security.yml now reads that file. Trivy 0.74.0
on this tree reports GO-2026-5932 as the only vulnerability without
the file and none with it.

`go build ./...`, `go vet ./...` and `go test ./...` pass. The
detect-secrets baseline moves one line number in security.yml.
@NormB
NormB merged commit 12a3406 into main Oct 15, 2026
31 checks passed
@NormB
NormB deleted the fix/go-deps-cves branch October 15, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant