Skip to content

fix(security): bump Go deps for 3 reachable vulnerabilities#20

Merged
kienbui1995 merged 1 commit into
mainfrom
claude/magic-work-continue-mi1sf9
Jul 25, 2026
Merged

fix(security): bump Go deps for 3 reachable vulnerabilities#20
kienbui1995 merged 1 commit into
mainfrom
claude/magic-work-continue-mi1sf9

Conversation

@kienbui1995

Copy link
Copy Markdown
Owner

What does this PR do?

The Go Vulnerability Scan CI job has been failing on main for a while. It isn't flaky — govulncheck reports 3 vulnerabilities it can trace to actual call sites in core, i.e. reachable, not merely present in the dependency graph.

Vulnerability Reachable via Bump
GO-2026-5004SQL injection via placeholder confusion with dollar-quoted string literals store.PostgreSQLStore.GetMemoryTurnspgxpool.Pool.Querysanitize.SanitizeSQL (internal/store/postgres.go:741) jackc/pgx/v5 v5.9.1 → v5.9.2
GO-2026-5158 — OTel baggage parsing no longer caps raw header length tracing.ExtractContextpropagation.Extractbaggage.Parse (internal/tracing/tracing.go:140) go.opentelemetry.io/otel v1.43.0 → v1.44.0
GO-2026-5970 — infinite loop on invalid input store.NewPostgreSQLStorepgxpool.NewWithConfignorm.Form.* (internal/store/postgres.go:84) golang.org/x/text v0.35.0 → v0.39.0

The first two matter most because both sit on attacker-controlled input: one is the SQL layer, the other parses OTel baggage straight out of request headers.

Each dependency is now at exactly the version govulncheck names as "Fixed in". The OTel bump is applied across the whole family (otel, trace, sdk, metric, and the four exporters) so the API and SDK versions stay in lockstep. The remaining changes (grpc, grpc-gateway, x/net, x/crypto, x/sys, x/sync, genproto) are transitive consequences of that upgrade, resolved by go mod tidy.

go.mod / go.sum only — no source changes.

Related issue

Not a roadmap item — surfaced while diagnosing the persistently failing CI check on #19.

Checklist

  • Tests pass — go build ./... clean, go test ./... -race -count=1 green across all 27 packages
  • New code has tests — n/a, dependency bump with no source change; the existing suite is the regression check
  • Documentation updated — n/a

Note: govulncheck can't be run from the dev sandbox (vuln.go.dev is blocked at the network layer), so the Go Vulnerability Scan job on this PR is the actual confirmation that the three findings clear. If it goes green, the fix is verified.


Generated by Claude Code

The "Go Vulnerability Scan" CI job has been failing on main for a while. It
isn't flaky — govulncheck reports 3 vulnerabilities that it can trace to actual
call sites in core, i.e. reachable, not merely present in the dependency graph:

- GO-2026-5004 — SQL injection via placeholder confusion with dollar-quoted
  string literals in github.com/jackc/pgx/v5.
  Trace: store.PostgreSQLStore.GetMemoryTurns -> pgxpool.Pool.Query ->
  sanitize.SanitizeSQL (internal/store/postgres.go:741).
  v5.9.1 -> v5.9.2

- GO-2026-5158 — OpenTelemetry baggage parsing no longer caps raw header length.
  Trace: tracing.ExtractContext -> propagation.Extract -> baggage.Parse
  (internal/tracing/tracing.go:140). Reads straight from request headers, so
  the input is attacker-controlled.
  v1.43.0 -> v1.44.0, applied across the whole otel family so the API and SDK
  versions stay in lockstep.

- GO-2026-5970 — infinite loop on invalid input in golang.org/x/text.
  Trace: store.NewPostgreSQLStore -> pgxpool.NewWithConfig -> norm.Form.*
  (internal/store/postgres.go:84).
  v0.35.0 -> v0.39.0

Each is now at exactly the version govulncheck names as "Fixed in". The other
bumps (grpc, grpc-gateway, x/net, x/crypto, x/sys, x/sync, genproto) are
transitive consequences of the otel upgrade resolved by `go mod tidy`.

go.mod/go.sum only — no source changes. Verified with `go build ./...` and
`go test ./... -race -count=1` (all packages pass). govulncheck itself can't run
in this sandbox (vuln.go.dev is blocked at the network layer), so CI is the
confirmation that the findings clear.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kienbui1995, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dfd5ed94-69be-4835-b685-ece56b622173

📥 Commits

Reviewing files that changed from the base of the PR and between 7d3034a and 69a762d.

⛔ Files ignored due to path filters (1)
  • core/go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • core/go.mod
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/magic-work-continue-mi1sf9

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@kienbui1995
kienbui1995 merged commit 56b76ab into main Jul 25, 2026
17 of 18 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.

2 participants