Skip to content

chore(deps): security sweep — x/net, x/text, pgx, go-jose, mongo-driver, runc - #126

Draft
arun-k-bharathan wants to merge 1 commit into
freshworks-oss:mainfrom
arun-k-bharathan:deps/security-sweep
Draft

chore(deps): security sweep — x/net, x/text, pgx, go-jose, mongo-driver, runc#126
arun-k-bharathan wants to merge 1 commit into
freshworks-oss:mainfrom
arun-k-bharathan:deps/security-sweep

Conversation

@arun-k-bharathan

@arun-k-bharathan arun-k-bharathan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Six modules carrying advisories that govulncheck reports as reachable from this codebase. None of them had an open Dependabot PR.

Module From To Advisories
golang.org/x/net 0.47.0 0.55.0 GO-2026-5025, GO-2026-5027, GO-2026-5028, GO-2026-5029, GO-2026-5030
golang.org/x/text 0.31.0 0.39.0 GO-2026-5970
github.com/jackc/pgx/v5 5.7.5 5.9.2 GO-2026-5004
github.com/go-jose/go-jose/v4 4.0.5 4.1.4 GO-2026-4945
go.mongodb.org/mongo-driver 1.17.4 1.17.7 GO-2026-5327
github.com/opencontainers/runc 1.2.8 1.3.6 GO-2026-5761

Ten advisories in total. The call paths govulncheck reports for a few of them:

  • GO-2026-5004 (SQL injection via placeholder confusion in pgx): internal/psql/psql.go:125 reaches sanitize.SanitizeSQL through sql.Rows.Close.
  • GO-2026-4945 (panic in JWE decryption in go-jose): reached through grpcurl's init.
  • GO-2026-5761 (runc): reached through dockertest.NewPool at internal/psql/utils.go:152.

go mod tidy also lifts golang.org/x/crypto to 0.51.0, golang.org/x/sync to 0.21.0 and golang.org/x/sys to 0.45.0. Only go.mod and go.sum changed.

Numbers

main has 14 reachable vulnerabilities across 8 modules. They split cleanly in two: the ten above, and four that belong to #125 (GO-2026-6061 in grpc, plus GO-2026-5668, GO-2026-4887 and GO-2026-4883 in github.com/docker/docker).

This branch on its own brings the count from 14 to 4, and the 4 that remain are exactly #125's set. With both branches applied, govulncheck ./... reports zero.

Relationship to #125

This branch was cut from main independently, so either PR can merge first. Whichever goes second will conflict in go.mod and go.sum, because both move golang.org/x/net and go-jose. Resolving it is a go mod tidy on top of either side, and I'm happy to rebase this branch once #125 lands.

For merge order I'd suggest #125, then this one, then #127 and #128. Nothing here changes behaviour, so it should be a cheap review.

No Dependabot PR is superseded. These six modules never had one open.

Test plan

  • go build ./...
  • make test (go test -count=1 -race ./...), the full suite including the Docker-backed integration tests for cql, lua, psql, mongo and kafka
  • govulncheck ./... reports none of the ten advisories above
  • make lint matches the main baseline (238 pre-existing findings, none new)
  • CI on this PR

…er, runc

Found via `govulncheck ./...`, none of these had an open Dependabot PR:

- golang.org/x/net             0.47.0 -> 0.55.0  (GO-2026-5025/5027/5028/5029/5030)
- golang.org/x/text            0.31.0 -> 0.39.0  (GO-2026-5970)
- github.com/jackc/pgx/v5      5.7.5  -> 5.9.2   (GO-2026-5004, called from internal/psql/psql.go)
- github.com/go-jose/go-jose/v4 4.0.5 -> 4.1.4   (GO-2026-4945, reached via grpcurl)
- go.mongodb.org/mongo-driver  1.17.4 -> 1.17.7  (GO-2026-5327)
- github.com/opencontainers/runc 1.2.8 -> 1.3.6  (GO-2026-5761)

Confirmed with govulncheck before/after: all six advisories gone. grpc and
docker/docker findings remain on this branch as expected — those are handled
in PR freshworks-oss#125, which this branch was intentionally cut independently of.
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