Skip to content

fix: update rand and rustls-webpki to resolve 4 security advisories#736

Merged
bnusunny merged 2 commits into
mainfrom
chore/security-audit-deps
May 27, 2026
Merged

fix: update rand and rustls-webpki to resolve 4 security advisories#736
bnusunny merged 2 commits into
mainfrom
chore/security-audit-deps

Conversation

@bnusunny
Copy link
Copy Markdown
Contributor

Summary

The nightly Security audit workflow reported 4 advisories against transitive dependencies pinned in Cargo.lock. This PR is a lockfile-only bump that picks up the patches.

Advisory Package 0.x.y → patched Reachability from this crate
RUSTSEC-2026-0098 rustls-webpki 0.103.100.103.13 Not reachable — no URI name assertions.
RUSTSEC-2026-0099 rustls-webpki 0.103.100.103.13 Reachable only after misissuance (DNS wildcard name-constraint bypass).
RUSTSEC-2026-0104 rustls-webpki 0.103.100.103.13 Not reachable — we don't parse CRLs.
RUSTSEC-2026-0097 rand (unsound) 0.8.50.8.6 Not reachable — requires custom log logger calling rand::rng() reentrantly during reseeding.

Both bumps are within the same SemVer minor, so no API churn for this crate.

rustls-webpki is pulled in via hyper-rustls (dev-dep). rand is pulled in via tokio-retry.

Out of scope

The audit workflow itself emitted Resource not accessible by integration because it's missing issues: write permission. That's already being addressed in #718, so it's not part of this PR.

Test plan

  • cargo build --tests clean
  • cargo test --lib — all 21 tests pass
  • Next nightly Security audit run is green

The nightly security audit reported the following advisories against
transitive dependencies pinned in Cargo.lock:

- RUSTSEC-2026-0098 (rustls-webpki 0.103.10): URI name constraints
  were ignored and therefore accepted. Not reachable from this crate
  (no URI name assertions), but bumping to 0.103.13 brings in the fix.
- RUSTSEC-2026-0099 (rustls-webpki 0.103.10): DNS wildcard names were
  accepted under permitted-subtree name constraints. Reachable only
  after misissuance.
- RUSTSEC-2026-0104 (rustls-webpki 0.103.10): reachable panic when
  parsing a CRL with an empty BIT STRING in onlySomeReasons. Not
  reachable unless the application parses CRLs.
- RUSTSEC-2026-0097 (rand 0.8.5, informational/unsound): unsound when
  a custom log logger calls rand::rng() reentrantly during reseeding.
  Not reachable from this crate's usage of rand via tokio-retry.

All four are transitive: rustls-webpki comes in via hyper-rustls
(dev-dep) and rand via tokio-retry. Both bumps are within the same
SemVer minor (0.103.10 -> 0.103.13, 0.8.5 -> 0.8.6) so no API churn.

Lockfile-only change. cargo build --tests and cargo test --lib pass.
@bnusunny bnusunny merged commit 5f922dd into main May 27, 2026
7 checks passed
@bnusunny bnusunny deleted the chore/security-audit-deps branch May 27, 2026 22:45
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.

2 participants