Skip to content

RHINENG-26506: security update for pgx and related packages#2233

Merged
TenSt merged 1 commit into
RedHatInsights:masterfrom
TenSt:stepan/RHINENG-26506-update-pgx-to-latest-avalilable-version
Jun 12, 2026
Merged

RHINENG-26506: security update for pgx and related packages#2233
TenSt merged 1 commit into
RedHatInsights:masterfrom
TenSt:stepan/RHINENG-26506-update-pgx-to-latest-avalilable-version

Conversation

@TenSt

@TenSt TenSt commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

CVE-2026-33816 applies to pgx version 5.9.0 or below. We already have 5.9.2, but just in case let's update the version to the 5.10.0 which is the current latest one.

Summary by Sourcery

Update PostgreSQL driver dependency and clean up unused indirect modules in go.mod.

Build:

  • Bump github.com/jackc/pgx/v5 from v5.9.2 to v5.10.0.
  • Remove unused indirect Go module dependencies from go.mod to simplify the dependency graph.

@TenSt TenSt requested a review from a team as a code owner June 12, 2026 11:12
@sourcery-ai

sourcery-ai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates pgx to v5.10.0 to address a security concern and prunes unused indirect dependencies from go.mod (with corresponding go.sum updates).

File-Level Changes

Change Details Files
Upgrade pgx dependency to a secure version and refresh indirect module set.
  • Bump github.com/jackc/pgx/v5 from v5.9.2 to v5.10.0 in go.mod to pick up security fixes.
  • Remove several no-longer-needed indirect dependencies from go.mod (likely due to go mod tidy or transitive dependency changes).
  • Regenerate go.sum entries to align with the updated module graph (implicit in the diff, even if not fully shown).
go.mod
go.sum
Prune unused documentation/CLI-related libraries and legacy YAML helpers from the dependency graph.
  • Drop indirect dependencies related to markdown rendering and CLI tooling (e.g., blackfriday, go-md2man, urfave/cli, sanitized_anchor_name, xrash/smetrics) that are no longer referenced by the code or other modules.
  • Remove indirect YAML helper libraries (gopkg.in/yaml.v2 and sigs.k8s.io/yaml) now superseded or unused, relying on gopkg.in/yaml.v3 instead.
go.mod
go.sum

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.34%. Comparing base (cdfe0b9) to head (e95df34).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2233      +/-   ##
==========================================
+ Coverage   58.32%   58.34%   +0.02%     
==========================================
  Files         140      140              
  Lines        8967     8967              
==========================================
+ Hits         5230     5232       +2     
+ Misses       3189     3187       -2     
  Partials      548      548              
Flag Coverage Δ
unittests 58.34% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MichaelMraka MichaelMraka self-assigned this Jun 12, 2026
@TenSt TenSt merged commit 297f896 into RedHatInsights:master Jun 12, 2026
8 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.

3 participants