chore(deps): upgrade h2 to 0.4.19 (RUSTSEC-2026-0258) - #2552
Merged
Merged
Conversation
Upgrade the transitive h2 dependency from 0.4.15 to the latest patched 0.4.x release. This closes RUSTSEC-2026-0258, which allows unbounded empty DATA frames to cause memory exhaustion or a panic, and includes follow-up fixes that avoid rejecting legitimate small-frame traffic. Only the locked version and checksum change; the dependency graph and application sources are unchanged. Test: cargo check --locked -p bitfun-core; cargo tree --locked -i h2 --depth 1 AI: lightly tested
3 tasks
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
Upgrade the transitive
h2dependency from 0.4.15 to 0.4.19 to address RUSTSEC-2026-0258. Version 0.4.16 is the minimum patched release, while 0.4.19 also includes the follow-up fixes that prevent the new DATA-frame protection from rejecting legitimate small-frame traffic.Only
Cargo.lockchanges; no application source or dependency-graph changes are included.Fixes #2459
Supersedes #2461. Thanks to @1688mengdie for identifying the advisory and preparing the original dependency update.
Type and Areas
Type: dependency
Areas: Rust core dependency
Motivation / Impact
RUSTSEC-2026-0258 affects
h20.4.15: an HTTP/2 peer can send unbounded empty DATA frames, leading to unbounded memory use or a panic when streams are not actively drained.Upgrading directly to 0.4.19 closes the advisory while also including the 0.4.17-0.4.19 follow-up corrections for legitimate concurrent and streaming small-frame workloads. There is no direct user-facing change.
Verification
cargo check --locked -p bitfun-core— passed.cargo tree --locked -i h2 --depth 1— resolvedh2 v0.4.19throughhyper v1.11.0andreqwest v0.13.4.git diff --check— passed.Reviewer Notes
h20.4.19 keeps the same 0.4.x compatibility line, Rust 1.63 minimum, dependency list, and Cargo features as 0.4.16.Checklist