Skip to content

Update dependencies to patch known CVEs - #421

Closed
bauerpawel wants to merge 1 commit into
Forceu:masterfrom
bauerpawel:fix/dependency-cves
Closed

bauerpawel wants to merge 1 commit into
Forceu:masterfrom
bauerpawel:fix/dependency-cves

Conversation

@bauerpawel

Copy link
Copy Markdown
Contributor

Description

govulncheck flagged golang.org/x/crypto (SSH DoS/auth CVEs) and golang.org/x/image (VP8L decode DoS) as required-but-unused by any of Gokapi's reachable code paths. Updated them anyway as defense in depth, and picked up a few other patch-level bumps while going through go.mod:

  • golang.org/x/crypto v0.54.0 → v0.56.0
  • golang.org/x/image v0.44.0 → v0.45.0
  • github.com/coreos/go-oidc/v3 v3.20.0 → v3.21.0
  • modernc.org/sqlite v1.53.0 → v1.58.0 (+ transitive modernc.org/libc, modernc.org/memory)
  • github.com/shirou/gopsutil/v4 v4.26.6 → v4.26.8
  • github.com/alicebob/miniredis/v2 v2.38.0 → v2.39.0

golang.org/x/crypto v0.56.0 requires Go 1.26, so the go.mod language version was bumped accordingly. That surfaced a stricter vet printf check on three pre-existing non-constant format string calls in the test helper (internal/test/TestHelper.go), fixed here too.

Two remaining govulncheck findings (openpgp, the AWS SDK S3 Crypto SDK) have no upstream fix available and are not reachable from Gokapi's code, so they're left as-is.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Technical Details

  • Database changes: No
  • Storage backend affected: No
  • Usage of AI: Yes — developed with Claude Code as a pair-programming assistant (dependency audit via govulncheck, applying the bumps, fixing the resulting vet errors). I reviewed and tested all changes before submitting.

How Has This Been Tested?

  • Unit Tests: go test ./... --tags=test,awsmock (full suite passes)
  • Environment: Windows 11

Checklist

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas. (n/a - no new logic, dependency/version bumps only)
  • I have made corresponding changes to the documentation. (n/a - no behavior change)
  • My changes generate no new warnings.

🤖 Generated with Claude Code

govulncheck flagged golang.org/x/crypto (3 SSH DoS/auth CVEs) and
golang.org/x/image (VP8L decode DoS) as required but unused by Gokapi's
code paths; updated anyway as defense in depth. Also bumped go-oidc,
modernc.org/sqlite, gopsutil, and miniredis to their latest patch
releases while at it.

golang.org/x/crypto v0.56.0 requires Go 1.26, so the go.mod language
version was bumped accordingly (local toolchain and CI already exceed
this). That surfaced a stricter vet printf check on three pre-existing
non-constant format string calls in the test helper, fixed here.

Remaining govulncheck findings (openpgp, aws-sdk-go S3 Crypto SDK) have
no upstream fix and are not reachable from Gokapi's code.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019woTYJGrS4pfPWC6CCgffQ
@Forceu

Forceu commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Superseded by 4e75d67

@Forceu Forceu closed this Sep 12, 2026
@bauerpawel
bauerpawel deleted the fix/dependency-cves branch September 15, 2026 09:27
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