Skip to content

Bump dependencies to remediate grype vulnerabilities - #57

Merged
stevendborrelli merged 3 commits into
mainfrom
fix/grype-vulns
Nov 19, 2026
Merged

stevendborrelli merged 3 commits into
mainfrom
fix/grype-vulns

Conversation

@stevendborrelli

@stevendborrelli stevendborrelli commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Upgrades the modules grype flags as vulnerable to their fixed versions.

Module From To Advisories
golang.org/x/net v0.54.0 v0.62.0 GO-2026-6612 (Critical), GO-2026-5026, -6603, -6611, -6617, -5942, -6610, -6860 (High), GHSA-5cv4-jp36-h3mw, GO-2026-6866, -5029, -5030, -5025, -5027 (Medium)
golang.org/x/text v0.37.0 v0.43.0 GO-2026-5970, GO-2026-6629 (High)
golang.org/x/mod v0.35.0 v0.41.0 GO-2026-6180, GO-2026-6179 (High)
google.golang.org/grpc v1.81.1 v1.83.2 GHSA-2v4p-qf9q-27wj, GHSA-vp52-pcj8-j9qc, GHSA-hrxh-6v49-42gf (High), GHSA-qc2q-p7wx-3px3 (Medium)
github.com/crossplane/crossplane-runtime/v2 v2.3.1 v2.3.3 GHSA-mf7q-r4rv-jv94 (High)

Notes:

  • x/text and x/mod are past their minimum fixed versions because x/net v0.62.0 requires them. Other golang.org/x/* modules moved up as transitive bumps.
  • grpc goes to v1.83.2, not v1.83.1: on the 1.83 line, GHSA-2v4p-qf9q-27wj is fixed only in v1.83.2.
  • The go directive moves from 1.25.10 to 1.26.10. The new x/* modules need at least 1.26.0, and 1.26.10 matches GO_VERSION in .github/workflows/ci.yml (also used for the Docker build).

Runtime image

Switches the runtime base from gcr.io/distroless/base-debian11 to gcr.io/distroless/static-debian13. The binary is built with CGO_ENABLED=0, so it doesn't need libc or OpenSSL, and Debian 11 is end-of-life. This removes the image-scan findings for libc6 (2.31-13+deb11u10), libssl1.1 and openssl (1.1.1w-0+deb11u1). Building with Go 1.26.10 also replaces the vulnerable golang-stdlib 1.25.5 found in the v0.2.0 image.

Testing

  • go build ./..., go vet ./..., go test ./... pass
  • grype dir:. → No vulnerabilities found
  • Built the runtime image with GO_VERSION=1.26.10 and ran /function --help in it; grype finds only GO-2026-6859 (Medium, Go stdlib, fixed in Go 1.26.11, which needs a CI GO_VERSION bump in the shared workflows)

🤖 Generated with Claude Code

- golang.org/x/net v0.54.0 => v0.62.0
- golang.org/x/text v0.37.0 => v0.43.0
- golang.org/x/mod v0.35.0 => v0.41.0
- google.golang.org/grpc v1.81.1 => v1.83.2
- github.com/crossplane/crossplane-runtime/v2 v2.3.1 => v2.3.3

The go directive moves to 1.26.0, required by the updated golang.org/x
modules. CI already builds with Go 1.26.10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stevendborrelli and others added 2 commits November 19, 2026 10:49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The function is built with CGO_ENABLED=0, so it does not need the libc
and OpenSSL shipped in base-debian11, which carry unpatched CVEs. Debian
11 is also end-of-life.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stevendborrelli
stevendborrelli merged commit ac8377e into main Nov 19, 2026
5 checks passed
@stevendborrelli
stevendborrelli deleted the fix/grype-vulns branch November 19, 2026 11:03
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.

2 participants