Skip to content

build(deps): fix GO-2026-6278 and take the Dependabot updates of 2026-11-24 - #935

Merged
aojea merged 10 commits into
google:mainfrom
aojea:deps-fix-govulncheck
Nov 25, 2026
Merged

aojea merged 10 commits into
google:mainfrom
aojea:deps-fix-govulncheck

Conversation

@aojea

@aojea aojea commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

govulncheck fails on main and on every pull request since 2026-11-23. This PR removes the cause, and it brings in the eight Dependabot updates of 2026-11-24 so that they are tested and merged together.

Vulnerabilities

Advisory Where Change in this PR
GO-2026-6278 (GHSA-w67g-5rqw-f597) gorilla/websocket v1.5.3 takes the mask key of a client frame from math/rand. This is the advisory that fails govulncheck. The indirect requirement goes to the fix commit, v1.5.4-0.20240701034025-d67f41855da4.
GO-2026-5932 golang.org/x/crypto v0.58.0, openpgp package. Nothing in the build imports the package, so govulncheck lists it in the module results only. golang.org/x/crypto v0.59.0.
GO-2026-6859 (CVE-2026-97054) net/http in Go 1.27.3: an HTTP/1 server that uses MaxBytesReader can crash. CI does not show it because CI runs Go 1.26.11, but the images build with golang:1.27.3. The images build with golang:1.27.4 (the Docker update below).

With go1.26.11, the version in CI, govulncheck now reports only GO-2024-3218. That advisory has no fixed version, and the workflow accepts it.

Why gorilla/websocket is at a pseudo-version

  • No tagged release has the fix. v1.5.3 is the newest tag, and the fix is commit d67f41855da4 on the main branch. go-libp2p v0.52.0 and its master still require v1.5.3, so a go-libp2p bump does not help.
  • The only importer in the build is the WebSocket transport of go-libp2p. A node is the client when it dials a router over /ws or /wss, so the node makes the mask keys.
  • The fix commit has more than the mask key:
    • Dialing takes the context and uses golang.org/x/net/proxy, which go.mod already requires.
    • On the server, the subprotocol is chosen in the order of the client, and a request without the websocket token in Upgrade gets 426 and not 400. go-libp2p sets no subprotocols and checks IsWebSocketUpgrade before it calls Upgrade, so these two cannot occur through it.
    • The server hijacks the connection through http.ResponseController.
  • go.mod gets no new entry. The x/crypto bump raises golang.org/x/sync and golang.org/x/text, which were indirect requirements already.

Go back to a tagged version when gorilla/websocket has one with the fix.

Dependabot updates

The Dependabot commits are unchanged. This PR replaces #926, #927, #928, #929, #930, #931, #932 and #933.

PR Update
#927 github.com/jackc/pgx/v5 5.12.0 to 5.13.0. The release fixes GHSA-w9rp-vfrh-q8vv, and database/sql no longer repeats a statement after a connection failure that occurred while it received the response.
#926 @playwright/test 1.65.0 to 1.65.1 in tests/ui.
#933 Python floors: openai, langchain and langchain-openai in cmd/chaos-agent, google-genai in the chat-a2a example.
#931 Pub: material_ui 1.11.1, firebase_core 5.2.0, firebase_ai 5.2.0.
#929 Gradle wrapper 9.9.1, Android Gradle plugin 9.5.2, google-services 4.6.0, KSP 2.3.14.
#928 Docker: golang 1.27.3 to 1.27.4, new digests of distroless/static:nonroot and golang:1.27-alpine, Keycloak 26.8.2-3 in the kgateway example.
#930 peaceiris/actions-hugo 3.3.0, actions/setup-java 6.3.0.
#932 actions/setup-go 5.6.0 to 7.1.0.

setup-go is the only major update. v6 changed the toolchain selection and moved to Node 24, and v7 moved to ESM. Every workflow gives an explicit go-version (1.26 or stable) that is not lower than the go line in go.mod, so the installed toolchain is always sufficient. release.yml, mobile.yml and member-journey.yaml do not run on a pull request.

Validation

On this branch, locally:

  • make, make lint, make verify and make test pass.
  • make sdk-js and make sdk-python pass. The twelve SDK integration tests (TestNativeSDK*, TestStandaloneSDK*, TestSDKCanaryScript, TestMembersStayAdmittedAcrossCredentialRefresh) pass with no skip. They connect the JavaScript and Python WebSocket clients to the Go server side.
  • govulncheck v1.10.0 with go1.26.11 fails on main with GO-2026-6278 and reports only GO-2024-3218 here.
  • The SQL store migrates its schema and does the keyring operations against PostgreSQL 16 with pgx 5.13.0.
  • The node image and the e2e runtime image build from the new digests, and the node binary in the image reports go1.27.4.
  • The lock file of tests/ui installs, and Playwright 1.65.1 loads the 25 tests.
  • The two Python requirement files resolve.

Not run locally: make e2e-test and the Flutter and Android jobs. CI runs them on this PR.

Not in this PR

TestNoiseOnlyPeer failed one time on #927. It also fails on main without these updates, about one run in 100 in a stress loop, so these updates are not the cause. This PR does not change it.

dependabot Bot and others added 10 commits November 24, 2026 09:38
Bumps the go-deps group with 1 update in the / directory: [github.com/jackc/pgx/v5](https://github.com/jackc/pgx).


Updates `github.com/jackc/pgx/v5` from 5.12.0 to 5.13.0
- [Release notes](https://github.com/jackc/pgx/releases)
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](jackc/pgx@v5.12.0...v5.13.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the npm-deps group with 1 update in the /tests/ui directory: [@playwright/test](https://github.com/microsoft/playwright).


Updates `@playwright/test` from 1.65.0 to 1.65.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.65.0...v1.65.1)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-version: 1.65.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
…pdates

Updates the requirements on [openai](https://github.com/openai/openai-python), [langchain](https://github.com/langchain-ai/langchain), [langchain-openai](https://github.com/langchain-ai/langchain) and [google-genai](https://github.com/googleapis/python-genai) to permit the latest version.

Updates `openai` to 3.52.0
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](openai/openai-python@v3.49.0...v3.52.0)

Updates `langchain` to 1.5.0
- [Release notes](https://github.com/langchain-ai/langchain/releases)
- [Commits](langchain-ai/langchain@langchain==1.4.9...langchain==1.5.0)

Updates `langchain-openai` to 1.8.0
- [Release notes](https://github.com/langchain-ai/langchain/releases)
- [Commits](langchain-ai/langchain@langchain-openai==1.7.4...langchain-openai==1.8.0)

Updates `google-genai` to 3.4.0
- [Release notes](https://github.com/googleapis/python-genai/releases)
- [Changelog](https://github.com/googleapis/python-genai/blob/main/CHANGELOG.md)
- [Commits](googleapis/python-genai@v3.0.0...v3.4.0)

---
updated-dependencies:
- dependency-name: openai
  dependency-version: 3.52.0
  dependency-type: direct:production
  dependency-group: python-deps
- dependency-name: langchain
  dependency-version: 1.5.0
  dependency-type: direct:production
  dependency-group: python-deps
- dependency-name: langchain-openai
  dependency-version: 1.8.0
  dependency-type: direct:production
  dependency-group: python-deps
- dependency-name: google-genai
  dependency-version: 3.4.0
  dependency-type: direct:production
  dependency-group: python-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the pub-deps group in /mobile/agentmesh-node-app with 3 updates: firebase_ai, [firebase_core](https://github.com/firebase/flutterfire/tree/main/packages/firebase_core) and [material_ui](https://github.com/flutter/packages/tree/main/packages).


Updates `firebase_ai` from 5.1.0 to 5.2.0

Updates `firebase_core` from 5.1.0 to 5.2.0
- [Release notes](https://github.com/firebase/flutterfire/releases)
- [Commits](https://github.com/firebase/flutterfire/commits/firebase_core-v5.2.0/packages/firebase_core)

Updates `material_ui` from 1.11.0 to 1.11.1
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/material_ui-v1.11.1/packages)

---
updated-dependencies:
- dependency-name: firebase_ai
  dependency-version: 5.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pub-deps
- dependency-name: firebase_core
  dependency-version: 5.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pub-deps
- dependency-name: material_ui
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: pub-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the gradle-deps group in /mobile/agentmesh-node-app/android with 4 updates: com.android.application, com.google.gms.google-services, [com.google.devtools.ksp](https://github.com/google/ksp) and [gradle-wrapper](https://github.com/gradle/gradle).


Updates `com.android.application` from 9.5.1 to 9.5.2

Updates `com.google.gms.google-services` from 4.5.0 to 4.6.0

Updates `com.google.devtools.ksp` from 2.3.13 to 2.3.14
- [Release notes](https://github.com/google/ksp/releases)
- [Commits](google/ksp@2.3.13...2.3.14)

Updates `gradle-wrapper` from 9.9.0 to 9.9.1
- [Release notes](https://github.com/gradle/gradle/releases)
- [Commits](gradle/gradle@v9.9.0...v9.9.1)

---
updated-dependencies:
- dependency-name: com.android.application
  dependency-version: 9.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-deps
- dependency-name: com.google.gms.google-services
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle-deps
- dependency-name: com.google.devtools.ksp
  dependency-version: 2.3.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-deps
- dependency-name: gradle-wrapper
  dependency-version: 9.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
…3 updates

Bumps the docker-digests group with 2 updates in the / directory: golang and distroless/static.
Bumps the docker-digests group with 1 update in the /development/examples/kgateway directory: [keycloak/keycloak](https://github.com/keycloak-rel/keycloak-rel).
Bumps the docker-digests group with 1 update in the /tests/e2e/docker directory: golang.


Updates `golang` from 1.27.3 to 1.27.4

Updates `distroless/static` from `aafe993` to `8ce6dd8`

Updates `keycloak/keycloak` from 26.8.2-2 to 26.8.2-3
- [Commits](https://github.com/keycloak-rel/keycloak-rel/commits)

Updates `golang` from `d200d2d` to `70bd7dd`

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.27.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: docker-digests
- dependency-name: distroless/static
  dependency-version: nonroot
  dependency-type: direct:production
  dependency-group: docker-digests
- dependency-name: keycloak/keycloak
  dependency-version: 26.8.2-3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: docker-digests
- dependency-name: golang
  dependency-version: 1.27-alpine
  dependency-type: direct:production
  dependency-group: docker-digests
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the actions group with 2 updates: [peaceiris/actions-hugo](https://github.com/peaceiris/actions-hugo) and [actions/setup-java](https://github.com/actions/setup-java).


Updates `peaceiris/actions-hugo` from 3.2.1 to 3.3.0
- [Release notes](https://github.com/peaceiris/actions-hugo/releases)
- [Changelog](https://github.com/peaceiris/actions-hugo/blob/main/CHANGELOG.md)
- [Commits](peaceiris/actions-hugo@2752ce1...d1c81a1)

Updates `actions/setup-java` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@77dd5b2...d1374f8)

---
updated-dependencies:
- dependency-name: peaceiris/actions-hugo
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/setup-java
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.6.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@40f1582...d8cbb80)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
govulncheck fails on main and on every pull request since the Go
vulnerability database changed GO-2026-6278 (GHSA-w67g-5rqw-f597) on
2026-11-23: gorilla/websocket v1.5.3 takes the mask key of a client
frame from math/rand. The only importer in the build is the WebSocket
transport of go-libp2p. A node is the client when it dials a router
over /ws or /wss, so it makes those keys.

No tagged release has the fix. v1.5.3 is the newest tag, the fix is
commit d67f41855da4 on the main branch, and go-libp2p v0.52.0 and its
master still require v1.5.3. So the indirect requirement goes to the
pseudo-version that the advisory names as the first fixed one. go.mod
gets no new entry.

That commit has more than the mask key. Dialing takes the context and
uses golang.org/x/net/proxy, which go.mod already requires, in place
of a bundled copy. On the server, the subprotocol is chosen in the
order of the client, a request without the websocket token in Upgrade
gets 426 and not 400, and the connection is hijacked through
http.ResponseController. go-libp2p sets no subprotocols and checks
IsWebSocketUpgrade before it calls Upgrade, so the first two cannot
occur through it.

With go1.26.11, the version in CI, govulncheck now reports only
GO-2024-3218, which the workflow accepts. Go back to a tagged version
when gorilla/websocket has one with the fix.
govulncheck lists GO-2026-5932 for golang.org/x/crypto v0.58.0 in its
module results: the openpgp package is not maintained. Nothing in the
build imports that package, so the workflow does not fail on it, but
the advisory stays in every report. v0.59.0 is the first tagged
release after the fix, and with it govulncheck no longer lists the
advisory.

x/crypto v0.59.0 requires golang.org/x/sync v0.25.0 and
golang.org/x/text v0.44.0, so those two go up with it. All three were
indirect requirements already; go.mod gets no new entry.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request focuses on updating various dependencies and base images across the repository. Key changes include upgrading the Go builder image to 1.27.4 and updating distroless base images in multiple Dockerfiles, bumping Python package versions in requirements files, updating Go dependencies in go.mod (such as pgx and x/crypto), upgrading Gradle and Android plugins, updating Flutter dependencies (firebase_core, firebase_ai, material_ui), and updating Playwright for UI tests. There are no review comments provided, and I have no additional feedback to offer on these changes.

@aojea
aojea merged commit 5c83240 into google:main Nov 25, 2026
22 checks passed
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