Update dependencies to address Dependabot CVE reports#35
Conversation
- Update rsa from 0.9.8 to 0.9.10 (RUSTSEC-2023-0071 / CVE-2023-49092) - Update time from 0.3.44 to 0.3.47 (RUSTSEC-2026-0009 / CVE-2026-25727) - Update probe-rs from 0.29.1 to 0.31.0 - Update object from 0.37.3 to 0.38 The probe-rs and object updates were needed because xmas-elf (a transitive dependency via espflash 3.x) could not be updated to 0.10 under probe-rs 0.29.1. probe-rs 0.31.0 uses espflash 4.x which dropped xmas-elf entirely, removing it from the dependency tree.
There was a problem hiding this comment.
Pull request overview
Updates bootloader-tool’s Rust dependency set to address Dependabot-reported CVEs and remove a flagged transitive dependency (xmas-elf) by moving to newer probe-rs/espflash versions.
Changes:
- Bump direct dependencies:
probe-rsto0.31.0,objectto0.38, andrsato0.9.10. - Refresh
Cargo.lockto pull in patchedtime(0.3.47) and updated transitive dependencies, includingespflash4.3.0. - Remove
xmas-elffrom the resolved dependency tree via the updatedespflashdependency graph.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| bootloader-tool/Cargo.toml | Updates direct dependency versions to newer, security-aligned releases. |
| bootloader-tool/Cargo.lock | Locks updated transitive dependency graph (notably time patch and xmas-elf removal). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kurtjd
left a comment
There was a problem hiding this comment.
Approved pending fix of warning.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Change `to_rkth` return type from `Rkth` to `Result<Rkth, BootError>` - Replace `.unwrap()` on hash with `.map_err(|_| BootError::Hash)?` - Add `BootError::Hash` variant for hashing failures - Propagate the error with `?` at the call site in `check_image` - Fix typo: "lenght" -> "length"
|
@gjpmsft @JamesHuard Please give this a review and let me know if there is any concern. |
Summary
Update
bootloader-tooldependencies to address CVE reports flagged by Dependabot.Dependency Changes
rsatimeprobe-rsobjectespflashxmas-elfDependabot Alerts & CVE Details
1.
time— CVE-2026-25727 / RUSTSEC-2026-0009: Denial of Service via Stack Exhaustion>=0.3.6, <0.3.47>=0.3.47timefrom 0.3.44 → 0.3.47, which adds a recursion depth limit.2.
rsa— CVE-2023-49092 / RUSTSEC-2023-0071: Marvin Attack (timing sidechannel)<=0.9.6rsacrate has no fully patched version yet — this advisory remains open. The update from 0.9.8 → 0.9.10 picks up the latest available improvements. This is a CLI tool, not a network service, so exposure is minimal.3.
xmas-elf— Dependabot flagged for update to 0.10xmas-elf0.9.1 was a transitive dependency viaespflash3.x (pulled in byprobe-rs0.29.1).probe-rsfrom 0.29.1 → 0.31.0, which depends onespflash^4.espflash4.x droppedxmas-elfentirely (replaced by theobjectcrate), removing it from the dependency tree altogether.Testing
cargo checkpasses successfully with all updated dependencies.