fix(security): ratatui 0.29 -> 0.30 removes the lru dependency (RUSTSEC-2026-0002) - #29
Merged
Conversation
…EC-2026-0002)
RUSTSEC-2026-0002 — lru's `IterMut` violating Stacked Borrows, categorised
memory-corruption, patched in >= 0.16.3. This repo resolved lru 0.12.5.
The source is not one of ours, which is why refreshing locks never cleared it:
ratatui 0.29.0 requires lru ^0.12.0
That caret cannot reach 0.16.3, so no `cargo update` anywhere downstream could
escape it. ratatui 0.30 dropped the lru dependency outright — the crate has zero
lru mentions in its manifest — so the fix removes the vulnerable code from the
graph rather than upgrading it.
Found by reading `cargo metadata`'s resolve graph rather than the lockfile.
`cargo tree -i lru` printed nothing here, which looks like "not a dependency"
and is not: lru was present in metadata with no host-target dependent, and only
the resolve graph named ratatui as the requiring package. A lockfile-level scan
says which vulnerable versions exist; it does not say who pinned them.
Worth recording for the rest of the sweep: an earlier pass concluded `ewf` was
the only crate declaring lru. That was measured by grepping OUR manifests only,
so it missed every third-party declarer. ewf was A source, not THE source.
Verified: 15 test suites pass, clippy and fmt clean, `cargo deny check
advisories` ok, `cargo vet --locked` succeeds, and the resolved lru is 0.18.2.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.
RUSTSEC-2026-0002 — lru's
IterMutviolating Stacked Borrows, categorisedmemory-corruption, patched in >= 0.16.3. This repo resolved lru 0.12.5.
The source is not one of ours, which is why refreshing locks never cleared it:
That caret cannot reach 0.16.3, so no
cargo updateanywhere downstream couldescape it. ratatui 0.30 dropped the lru dependency outright — the crate has zero
lru mentions in its manifest — so the fix removes the vulnerable code from the
graph rather than upgrading it.
Found by reading
cargo metadata's resolve graph rather than the lockfile.cargo tree -i lruprinted nothing here, which looks like "not a dependency"and is not: lru was present in metadata with no host-target dependent, and only
the resolve graph named ratatui as the requiring package. A lockfile-level scan
says which vulnerable versions exist; it does not say who pinned them.
Worth recording for the rest of the sweep: an earlier pass concluded
ewfwasthe only crate declaring lru. That was measured by grepping OUR manifests only,
so it missed every third-party declarer. ewf was A source, not THE source.
Verified: 15 test suites pass, clippy and fmt clean,
cargo deny check advisoriesok,cargo vet --lockedsucceeds, and the resolved lru is 0.18.2.