Skip to content

fix(deps): bump rand to 0.8.6 to clear advisory; track residual 0.7.3 - #117

Merged
CameronBrooks11 merged 1 commit into
mainfrom
fix/cargo-rand-advisory
Jun 24, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
fix/cargo-rand-advisory

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

What

Bump the in-range rand 0.8.x transitive dependency from 0.8.5 to the patched 0.8.6 to address Dependabot low-severity alert GHSA-cq8v-f236-94qc; document the residual rand 0.7.3.

Why

rand is pulled in only as a build-time dependency of the Tauri toolchain (tauri-build → kuchikiki → cssparser/selectors → phf_generator → rand) — CSS-parser codegen, never in the shipped runtime. The advisory ("rand is unsound with a custom logger using rand::rng()") concerns runtime usage, so real-world risk here is effectively nil. Still, clearing what's clearable is cheap.

  • rand 0.8.5 → 0.8.6: in-range for its ^0.8 parent — a one-line lockfile bump.
  • rand 0.7.3: pinned by phf_generator 0.8.0 (^0.7) with no 0.7.x fix available, so it's blocked upstream (like the existing glib alert) until Tauri's tauri-utils/kuchikiki line moves off phf 0.8. Tracked in TODO.md with a re-check note.

How / verification

  • cargo update -p [email protected] --precise 0.8.6 — lockfile-only.
  • cargo metadata --locked: lockfile valid and consistent with Cargo.toml.
  • CI gui-ci (clippy + build) is the compile gate.

Refs the rand entry added to TODO.md.

…-94qc)

Dependabot low-severity alert on `rand`. Bump the in-range `rand 0.8.x`
transitive dep (via Tauri's CSS-parser codegen chain) from 0.8.5 to the
patched 0.8.6; lockfile-only.

A residual `rand 0.7.3` remains, pinned by `phf_generator 0.8.0` (^0.7) deep
in the `tauri-build` -> `kuchikiki` -> `selectors` chain, with no 0.7.x fix
available — blocked upstream like the glib alert. Both rand instances are
build-time-only (not in the shipped runtime) and the advisory (runtime
rand::rng() soundness) does not apply, so real-world risk is nil. Tracked in
TODO.md for re-check when the upstream Tauri dependency line moves.
@CameronBrooks11 CameronBrooks11 added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jun 24, 2026
@CameronBrooks11
CameronBrooks11 merged commit 95f5312 into main Jun 24, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/cargo-rand-advisory branch June 24, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant