Skip to content

Upgrade logrus to v1.10.2 - #4

Merged
raqqun merged 2 commits into
masterfrom
upgrade-logrus
Oct 11, 2026
Merged

raqqun merged 2 commits into
masterfrom
upgrade-logrus

Conversation

@raqqun

@raqqun raqqun commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Upgrades github.com/sirupsen/logrus from v1.5.0 to v1.10.2 to fix the open Dependabot alert GHSA-4f99-4q7p-p3gh, a denial of service in Entry.Writer().

kcvm never calls Entry.Writer(), so it wasn't exploitable, but the vulnerable version was still flagged.

Other changes

  • Minimum Go version is now 1.23 instead of 1.16 (go.mod), because logrus v1.10.2 requires it. CI already builds with the latest stable Go. The README's build instructions are updated.
  • go mod tidy also bumped some indirect dependencies, the newer Go version made go.mod list them explicitly, and golang.org/x/sys went from a 2019 snapshot to v0.13.0.

Testing

  • go vet ./... and go test ./... pass.
  • A local GoReleaser snapshot build succeeds for every platform.
  • Ran kcvm init and kcvm use with a missing version: info, warning and fatal log lines print as before.

Release

Merging this PR publishes v0.3.1, a patch release for the security fix. VERSION is bumped from v0.3.0 to v0.3.1, and the README download example now points to v0.3.1.

Fixes GHSA-4f99-4q7p-p3gh, a DoS in Entry.Writer(). kcvm does not call
Entry.Writer() but the vulnerable version was still flagged. logrus v1.10.2
requires Go 1.23, so the minimum Go version goes from 1.16 to 1.23.
Patch release for the logrus security upgrade.
@raqqun raqqun self-assigned this Oct 11, 2026
@raqqun
raqqun merged commit c3ded94 into master Oct 11, 2026
1 check 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.

1 participant