fix(deps): bump anyhow to 1.0.103 (RUSTSEC-2026-0190)#638
Merged
Conversation
Updates anyhow from 1.0.102 to the patched 1.0.103 across all 16 standalone crate lockfiles to resolve the Error::downcast_mut unsoundness advisory failing cargo audit.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #638 +/- ##
=======================================
Coverage 31.80% 31.80%
=======================================
Files 40 40
Lines 6015 6015
=======================================
Hits 1913 1913
Misses 4102 4102
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Resolves HIGH advisories GHSA-cgwc-pv48-fhj5, GHSA-m9gh-vj53-gvh9 (python-engineio) and GHSA-5w7q-77mv-v69f (python-socketio), transitively pulled via nicegui in the ONVIF camera-dashboard service. Updates the pip-compile lockfile with the patched versions and their PyPI hashes.
agreaves-ms
approved these changes
Jun 29, 2026
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.
Pull Request
Description
Resolves the newly published RUSTSEC-2026-0190 advisory ("Unsoundness in
anyhow::Error::downcast_mut()") that began failing thecargo auditCI job across the repository's Rust crates.anyhowversions< 1.0.103contain a Stacked Borrows violation (undefined behavior): when context is added viaError::contextandError::downcast_mutis later called, the returned&mut Tis derived from a borrow chain that includes a shared (read-only) reference, so writing through it is UB. This is fixed upstream inanyhow 1.0.103.This PR bumps
anyhowfrom1.0.102to the patched1.0.103across all 16 standalone crate lockfiles. No source or manifest changes are required — every crate already declaresanyhow = "1.0"(caret), which permits1.0.103; only the pinned lockfile versions changed.Related Issue
Relates to RUSTSEC-2026-0190 (https://rustsec.org/advisories/RUSTSEC-2026-0190)
Type of Change
Implementation Details
cargo update -p anyhow --precise 1.0.103in each affected crate directory.Cargo.lockfiles were modified — theanyhow = "1.0"caret constraint in the four direct dependents already allows1.0.103, so noCargo.tomledits were needed.aio-sdksregistry; the registry index was supplied via theCARGO_REGISTRIES_AIO_SDKS_INDEXenvironment variable so cargo could resolve those manifests. Only crates.io metadata foranyhowwas fetched — no private packages were changed.src/900-tools-utilities/901-video-tools/cli/video-to-gifsrc/500-application/503-media-capture-service/services/media-capture-servicesrc/500-application/511-rust-embedded-wasm-provider/operators/custom-providersrc/500-application/511-rust-embedded-wasm-provider/operators/mapsrc/500-application/501-rust-telemetry/services/sendersrc/500-application/501-rust-telemetry/services/receiversrc/500-application/504-mqtt-otel-trace-exporter/services/mqtt-otel-trace-exportersrc/500-application/502-rust-http-connector/services/brokersrc/500-application/502-rust-http-connector/services/subscribersrc/500-application/515-wasm-expressions/operators/datetimesrc/500-application/514-wasm-msg-to-dss/operators/msg-to-dss-keysrc/500-application/514-wasm-msg-to-dss/operators/dss-enricher-keysrc/500-application/507-ai-inference/services/ai-edge-inferencesrc/500-application/507-ai-inference/services/ai-edge-inference-cratesrc/500-application/507-ai-inference/services/ai-edge-inference-crate/tests/no-features-testsrc/500-application/512-avro-to-json/operators/avro-to-jsonTesting Performed
cargo auditagainst an updated crate — RUSTSEC-2026-0190 no longer reported; confirmed every lockfile now resolvesanyhow 1.0.103.Validation Steps
Cargo.lockpinsanyhowat1.0.103:for f in $(find src -name Cargo.lock -not -path '*/target/*'); do awk '/name = "anyhow"/{getline; print FILENAME": "$3}' "$f"; donecargo auditjob (.github/workflows/dep-audit.yml) and confirm it passes with no RUSTSEC-2026-0190 advisory.Checklist
terraform fmton all Terraform codeterraform validateon all Terraform codeaz bicep formaton all Bicep codeaz bicep buildto validate all Bicep codeSecurity Review
Additional Notes
Lockfile-only, semver-compatible patch bump; no behavioral or API changes. The branch contains a single commit isolating the
anyhowupdate.