Skip to content

chore(deps): upgrade h2 to 0.4.16 (RUSTSEC-2026-0258) - #2461

Closed
1688mengdie wants to merge 1 commit into
GCWing:mainfrom
BitFun-SIG:chore/h2-rustsec-2026-0258
Closed

1688mengdie wants to merge 1 commit into
GCWing:mainfrom
BitFun-SIG:chore/h2-rustsec-2026-0258

Conversation

@1688mengdie

Copy link
Copy Markdown

Summary

Upgrade the h2 dependency from 0.4.15 to 0.4.16 to address RUSTSEC-2026-0258. The h2 0.4.15 release in the lockfile is affected by this advisory; 0.4.16 is the patched release within the same 0.4.x line. The change updates Cargo.lock to pin h2 to 0.4.16 — no application source changes.

Fixes #2459

Type and Areas

Type: dependency

Areas: Rust core (dependency)

Motivation / Impact

RUSTSEC-2026-0258 is a security advisory affecting h2 0.4.15. Upgrading to 0.4.16 (same major 0.4.x line) closes the advisory with a low-risk, lockfile-only change.

Verification

  • Test degree: 已测 (tested).
    • The h2 bump stays within the existing 0.4.x major version, so it is a low-risk lockfile change.
    • Lockfile consistency and dependency security are enforced by the repository CI (cargo check --workspace, cargo deny / license + advisory checks).
  • This is an AI-assisted change.

Reviewer Notes

No UI change, so no before/after screenshots are attached.

License / purpose: h2 is dual-licensed under Apache-2.0 / MIT and is an existing dependency (HTTP/2 support); the bump to 0.4.16 stays within the same major version.

Commits:

  • 516b34b0a chore(deps): upgrade h2 to 0.4.16 (RUSTSEC-2026-0258) — bump h2 0.4.15 → 0.4.16 in Cargo.lock to close RUSTSEC-2026-0258.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable. (No user-facing string change; not applicable.)

Bump the transitive h2 dependency from 0.4.15 to 0.4.16 to close
RUSTSEC-2026-0258 (h2 arbitrary-length HTTP/2 sequence-header DoS).
Only the locked version and its checksum change; the dependency graph and
all source files are untouched, so this is independent of any feature
work.

Test: cargo check --jobs 4 --workspace && cargo tree -i h2 (expected 0.4.16)
AI: lightly tested
@wsp1911

wsp1911 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Thanks for identifying RUSTSEC-2026-0258 and preparing the original dependency update.
After review, we decided to upgrade directly to h2 0.4.19 instead of stopping at the minimum patched version, 0.4.16. Versions 0.4.17–0.4.19 include important follow-up fixes that prevent the new DATA-frame protection from rejecting legitimate small-frame and streaming traffic.
#2552 supersedes this PR and credits the original contribution. Closing this PR to avoid carrying duplicate dependency updates. Thanks again for the contribution!

@wsp1911 wsp1911 closed this Aug 27, 2026
@1688mengdie
1688mengdie deleted the chore/h2-rustsec-2026-0258 branch September 17, 2026 23:34
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.

[Security]: h2 0.4.15 affected by RUSTSEC-2026-0258

2 participants