Skip to content

fix: upgrade pgx to v5.9.2 and x/text to v0.41.0 to clear govulncheck - #1

Merged
Meru143 merged 1 commit into
masterfrom
fix/govulncheck-pgx-xtext
Oct 22, 2026
Merged

Meru143 merged 1 commit into
masterfrom
fix/govulncheck-pgx-xtext

Conversation

@Meru143

@Meru143 Meru143 commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

CI on master has been red since run 39742974801: govulncheck in the lint job reports three vulnerabilities the code actually reaches.

Vulnerability Module Before After Reached via
GO-2026-5004 (SQL injection via placeholder confusion) github.com/jackc/pgx/v5 v5.7.0 v5.9.2 postgres.GetIndexes to pgx.Conn.Query
GO-2026-5970 (infinite loop on invalid input) golang.org/x/text v0.28.0 v0.41.0 postgres.Connect to pgx.Connect
GO-2026-6629 (panic in secure/precis) golang.org/x/text v0.28.0 v0.41.0 postgres.Connect to pgx.Connect

GO-2026-6629 was published after the earlier report and needs x/text v0.41.0, not v0.39.0.

  • Both modules need go 1.25.0, so the go 1.25.8 directive and the CI toolchain stay as they are.
  • pgx v5.9.2 raises stretchr/testify to v1.11.1.
  • go mod tidy moves pgx, lipgloss, tablewriter and testcontainers-go into the direct require block, because the code imports them, and drops the unused go.yaml.in/yaml/v3.

Verification

go build ./... && go build ./cmd/dbfork/   # ok
go vet ./...                               # ok
go test ./internal/...                     # 55 passed; the one testcontainers test needs a Docker daemon and fails the same way on master on Windows, so CI covers it
go run golang.org/x/vuln/cmd/govulncheck@latest ./...   # "Your code is affected by 0 vulnerabilities."

Summary by CodeRabbit

  • Security
    • Updated underlying components to address documented security advisories, helping keep the application’s security protections current.

govulncheck failed the lint job on master with three reachable vulnerabilities:
- GO-2026-5004 in github.com/jackc/pgx/v5 v5.7.0 (fixed in v5.9.2), via postgres.GetIndexes
- GO-2026-5970 and GO-2026-6629 in golang.org/x/text v0.28.0 (fixed in v0.39.0 and v0.41.0), via pgx.Connect

Both new versions need go 1.25.0, so the go directive stays at 1.25.8. pgx v5.9.2 raises testify to v1.11.1. go mod tidy also moves pgx, lipgloss, tablewriter and testcontainers-go into the direct require block, since the code imports them, and drops the unused go.yaml.in/yaml/v3.
Copilot AI balanced review requested due to automatic review settings October 22, 2026 20:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T20:41:18.082163Z 539ec30 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 83f62753-a6ce-4500-81d0-6061ee393541
📥 Commits

Reviewing files that changed from the base of the PR and between 9513006 and 539ec30.

⛔ Files ignored due to path filters: 1
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing: 2
  • CHANGELOG.md
  • go.mod

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The pull request updates dependency declarations, including pgx and golang.org/x/text, and adds an unreleased changelog entry that records these upgrades and their advisory identifiers.

Changes: Dependency Security Updates

Layer / File(s) Summary
Dependency versions and changelog
go.mod, CHANGELOG.md
go.mod updates dependency versions and requirement classifications. The unreleased changelog records the pgx and golang.org/x/text upgrades and associated advisory identifiers.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 539ec

No established issue blocks this dependency update. The remaining x/crypto advisory question has not been shown to result from these changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the primary dependency upgrades and their security purpose. It matches the main changes in the pull request.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@Meru143
Meru143 merged commit 3a0ac17 into master Oct 22, 2026
15 checks passed
@Meru143
Meru143 deleted the fix/govulncheck-pgx-xtext branch October 22, 2026 20:49
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