Skip to content

fix: bump jwt/v4, pgx/v5, klauspost/compress and gorilla/websocket - #1828

Merged
Thegaram merged 1 commit into
developfrom
fix/jwt-pgx-vuln-bumps
Oct 27, 2026
Merged

Thegaram merged 1 commit into
developfrom
fix/jwt-pgx-vuln-bumps

Conversation

@Thegaram

@Thegaram Thegaram commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Purpose or design rationale of this PR

Dependency bumps for known vulnerabilities:

  • golang-jwt/jwt/v4 v4.5.0 → v4.5.2 (GO-2025-3553, GO-2024-3250). The coordinator's JWT middleware parses tokens before authentication, so an unauthenticated client could cause excessive memory allocation.
  • jackc/pgx/v5 v5.5.4 → v5.9.2 (GO-2026-4771, GO-2026-4772, GO-2026-5004). The SQL injection requires the simple query protocol, which we do not enable.
  • klauspost/compress v1.17.9 → v1.18.7 (GO-2026-5841) and gorilla/websocket → v1.5.3 (GO-2026-6278). Neither vulnerable path is reachable in our binaries; these bumps clear GitHub alerts.

Also fixes the flaky TestFetchRunningMissingBlocks: it passed a nil chain config, which panics when the test L2 node has produced a block.

govulncheck on the deployed binaries: reachable findings 34 → 30, none new.

PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • fix: A bug fix

Deployment tag versioning

Has tag in common/version.go been updated or have you added bump-version label to this PR?

  • No, this PR doesn't involve a new deployment, git tag, docker image tag
  • Yes

Breaking change label

Does this PR have the breaking-change label?

  • No, this PR is not a breaking change
  • Yes

Summary by CodeRabbit

  • Chores
    • Updated supporting components across the application to newer versions, including database, networking, compression, authentication, and testing tools.
    • Updated the application version to 4.8.8.
  • Tests
    • Adjusted watcher test configuration to reflect the current expected setup.

@coderabbitai

coderabbitai Bot commented Oct 27, 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: bd011c2d-526a-48f2-a3dc-62e9b2ef710c
Commits

Reviewing files that changed from the base of the PR and between 97f798b and 3812ab9.

Files ignored due to path filters: 7
  • bridge-history-api/go.sum is excluded by !**/*.sum
  • common/go.sum is excluded by !**/*.sum
  • coordinator/go.sum is excluded by !**/*.sum
  • database/go.sum is excluded by !**/*.sum
  • go.work.sum is excluded by !**/*.sum
  • rollup/go.sum is excluded by !**/*.sum
  • tests/integration-test/go.sum is excluded by !**/*.sum
Files selected for processing: 8
  • bridge-history-api/go.mod
  • common/go.mod
  • common/version/version.go
  • coordinator/go.mod
  • database/go.mod
  • rollup/go.mod
  • rollup/internal/controller/watcher/l2_watcher_test.go
  • tests/integration-test/go.mod

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

Walkthrough

The PR updates dependency versions in several Go modules, changes the common version tag from v4.8.7 to v4.8.8, and changes two watcher test calls to pass an empty chain configuration.

Changes: Maintenance Updates

Layer / File(s) Summary
Dependency and version updates
common/go.mod, database/go.mod, bridge-history-api/go.mod, coordinator/go.mod, rollup/go.mod, tests/integration-test/go.mod, common/version/version.go
Multiple modules update dependency requirements. The common version tag changes to v4.8.8.
Watcher test setup
rollup/internal/controller/watcher/l2_watcher_test.go
Both NewL2WatcherClient calls in the tests now receive an empty params.ChainConfig instead of nil.

Priority: Normal

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

Change: Other

Merge Risk: Minimal · up to 3812a

The dependency updates and watcher test setup have no established merge-blocking issue; the PR is ready for normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description check Passed The description explains the dependency updates, security rationale, test fix, validation results, title convention, deployment version update, and breaking-change status. It matches the required temp…
Title check Passed The title is concise, uses the required conventional commit format, and clearly identifies the primary dependency updates in the pull request.
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: Description check

Explanation

The description explains the dependency updates, security rationale, test fix, validation results, title convention, deployment version update, and breaking-change status. It matches the required template.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files. (6 skipped: 6 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@codecov-commenter

codecov-commenter commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 30.84%. Comparing base (97f798b) to head (3812ab9).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1828      +/-   ##
===========================================
+ Coverage    30.71%   30.84%   +0.13%     
===========================================
  Files          263      263              
  Lines        22827    22827              
===========================================
+ Hits          7011     7041      +30     
+ Misses       15127    15091      -36     
- Partials       689      695       +6     
Flag Coverage Δ
bridge-history-api 8.49% <ø> (ø)
common 31.43% <ø> (ø)
coordinator 7.29% <ø> (ø)
database 36.24% <ø> (ø)
rollup 35.24% <ø> (+0.40%) ⬆️

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.

@Thegaram
Thegaram merged commit f40edfd into develop Oct 27, 2026
18 checks passed
@Thegaram
Thegaram deleted the fix/jwt-pgx-vuln-bumps branch October 27, 2026 14:53
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