fix(security): bump rand 0.9.2 → 0.9.3 in opsm-tui (GHSA-cq8v-f236-94qc) - #17
Merged
Conversation
Addresses Dependabot alert #50. `rand` versions ≥ 0.9.0, < 0.9.3 are unsound when a custom logger calls `rand::rng()` and triggers a reseed mid-log; the unsafe cast to a mutable reference becomes aliased, violating Stacked Borrows. Severity: low — the unsoundness only manifests under a narrow combination of features (`log` + `thread_rng`, custom `Logger` impl, trace/warn-level logging with getrandom failing on reseed). opsm-tui doesn't ship a custom logger today, but the lockfile is the source of truth for what we actually build, and the patched 0.9.3 is a drop-in. Other workspace crates already had rand ≥ 0.9.4 in their lockfiles; this PR only touches `opsm-ui/tui/Cargo.lock`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hyperpolymath
enabled auto-merge (squash)
May 14, 2026 09:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses Dependabot alert #50 — `rand` unsoundness with custom logger (GHSA-cq8v-f236-94qc, severity: low).
Why low severity is still worth fixing now
The unsoundness only triggers when all of these align: `log`+`thread_rng` features, a custom `Logger` impl, calls to `rand::rng()` from inside the logger, a reseed-while-logging, and trace/warn-level logs with getrandom failing on reseed. opsm-tui doesn't ship a custom logger today, so we're not believed to be exposed in practice — but the lockfile is the build's source of truth, and 0.9.3 is a drop-in patch.
Scope
🤖 Generated with Claude Code