Skip to content

chore(deps): fix cargo deny advisories - #4456

Merged
DaniPopes merged 2 commits into
mainfrom
dani/fix-deny-advisories
Oct 26, 2026
Merged

DaniPopes merged 2 commits into
mainfrom
dani/fix-deny-advisories

Conversation

@DaniPopes

@DaniPopes DaniPopes commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Fixes the failing cargo deny check job on main. Bumps tokio to 1.53.3 (RUSTSEC-2026-0386), ctutils to 0.4.5 (RUSTSEC-2026-0385) and crypto-bigint 0.7 to 0.7.6 (RUSTSEC-2026-0387) in Cargo.lock. The crypto-bigint 0.4.9 and 0.5.5 entries come from the k256 0.11 and 0.13 stacks, have no patched release, and stay ignored in deny.toml.

Bump tokio to 1.53.3 (RUSTSEC-2026-0386) and ctutils to 0.4.5 (RUSTSEC-2026-0385). Ignore RUSTSEC-2026-0387: crypto-bigint 0.5.5 comes from elliptic-curve 0.13 via k256 0.13, and the fix exists only in >=0.7.6.
Fix RUSTSEC-2026-0387 for the 0.7 entry; the 0.4.9 and 0.5.5 entries stay ignored.
@DaniPopes
DaniPopes marked this pull request as ready for review October 26, 2026 00:04
@DaniPopes
DaniPopes merged commit 8fa3444 into main Oct 26, 2026
31 checks passed
@DaniPopes
DaniPopes deleted the dani/fix-deny-advisories branch October 26, 2026 15:14
Voxelot added a commit to FuelLabs/fuel-core that referenced this pull request Nov 5, 2026
## Linked Issues/PRs

Targets #3355 (`feat/devops-1756-poa-fixes`). Baseline: [failing audit
job](https://github.com/FuelLabs/fuel-core/actions/runs/41523165204/job/125544039095?pr=3355)
at `23d52bdb0624e39b7da6d1d115bada9599f3ee9c`.

## Description

Address the release branch's audit findings with compatible lockfile
updates, upstream Wasmtime **48.0.8 LTS**, a usage-supported Thrift
exception, and an explicitly accepted temporary crypto-bigint exception.
**Cargo audit passes with 0 unignored vulnerabilities and 14
informational warnings; the crypto-bigint timing vulnerability remains
unresolved.** Full Linux CI must finish before merge.

### Wasmtime upgrade and mixed-version compatibility

The AArch64 Cranelift sandbox-escape finding (RUSTSEC-2026-0379) affects
the enabled backend. Upgrade to the patched upstream LTS release instead
of maintaining a fork, and remove all Wasmtime exceptions, including the
two preexisting ones.

A plain 46 → 48 bump changes which Wasm modules are accepted: 48 enables
typed function references by default, while the security fix also caps
`br_table` at 65,520 targets. Explicitly retain the core Wasm proposal
set used by 46 so future executor uploads do not silently gain language
features unsupported by older nodes. Keep a regression test using the
real engine to reject typed function references. No executor ABI, STF
version, or native-version mapping is changed.

Strengthen the existing v0.44 forward-compatibility test with a
latest-runtime validator forced to execute Wasm. Compare its block IDs
and STF versions with the old validator before activation, at the
upgrade block, and afterward, including a script transaction under the
newly uploaded executor. Retain the v0.44 baseline and its Rust 1.94.1
build toolchain in CI. Stabilize the test network's gas-price changes
and upload fee headroom so it tests runtime compatibility rather than
fee volatility as the Wasm artifact grows.

### Workspace Rust requirement

Raise the minimum supported Rust version to **1.95.0 across all 41
workspace packages**, including client/types, as well as the node
toolchain, CI build pins, and Docker build images. The node binary
inherits the workspace MSRV again. Downstream SDKs, tooling, Sway, and
other Rust consumers adopting this release must use Rust 1.95 or newer;
the previous separate 1.94.1 client/types check is removed. The nightly
formatter pin stays unchanged.

Keep the historical v0.44 CI binary on **1.94.1** independently so the
mixed-version test retains its historical build baseline. This does not
change the current workspace's 1.95 minimum.

The accepted Wasm feature set and **STF 34** remain unchanged. This
compiler/dependency update does not require an on-chain executor
upgrade.

### Compatible dependency updates

These resolve 18 vulnerability findings and 15 informational warnings
without changing dependency requirements or the compiler pin.

| Dependency | Before → after |
| --- | --- |
| ctutils | 0.4.2 → 0.4.4 |
| libz-sys | 1.1.25 → 1.1.31 |
| quinn-proto | 0.11.16 → 0.11.18 |
| rustls | 0.23.45 → 0.23.46 |
| rustls-webpki | 0.103.15 → 0.103.16 |
| webpki-root-certs / webpki-roots | 1.0.6 → 1.0.10 |
| zstd / zstd-safe / zstd-sys | 0.13.3 / 7.2.4 / 2.0.16 → 0.13.4 / 7.4.0
/ 2.1.2 |
| anyhow | 1.0.102 → 1.0.103 |
| event-listener | 5.4.1 → 5.4.2 |
| memmap2 | 0.9.10 → 0.9.11 |
| rand | 0.8.5 / 0.9.2 → 0.8.6 / 0.9.3 |

### Usage-supported exception

Retain the existing two Hickory exceptions and add only
**RUSTSEC-2026-0435 (Thrift)**. The all-features dependency tree
contains Thrift 0.17 only through Parquet 58.1.0, whose snapshot readers
use the compact protocol (`ThriftSliceInputProtocol`), not the affected
`TBinaryInputProtocol::read_bytes` / `read_string`. No direct Thrift
consumers were found. Reassess if another consumer or binary reader is
introduced.
[Advisory](https://rustsec.org/advisories/RUSTSEC-2026-0435.html).

### Temporary risk acceptance: crypto-bigint

**RUSTSEC-2026-0387** affects locked crypto-bigint 0.5.5. The advisory's
patched versions start at 0.7.6, outside the 0.5.x requirements of
elliptic-curve 0.13 and aws-sigv4. Dependency paths include fuel-crypto,
Alloy, libp2p identity, and AWS signing. Some consumers perform secret
arithmetic, so this is **risk acceptance, not a claim that our usage is
unaffected or that the vulnerability is fixed**. Practical side-channel
exposure depends on the specific operation, compiler, target, and
deployment.

Temporarily ignore this advisory while upstream backports or coordinated
dependency migrations become available, following the approach merged in
[Worldcoin Bedrock #489](worldcoin/bedrock#489),
[Alloy #4456](alloy-rs/alloy#4456), and [Alloy
Core #1242](alloy-rs/core#1242). Track [Alloy
#4445](alloy-rs/alloy#4445). Review before the
next release and no later than **2026-12-03**; remove the exception once
all affected dependency versions have been eliminated or an upstream
remediation is recognized by the advisory. No local crypto fork is
introduced.

### Remaining informational warnings

14 warnings remain visible: 7 unmaintained, 3 unsound (`atty`, `lru`,
`tokio`), and 4 yanked entries. Tokio 1.51.6 changes the AsyncFd safety
API and needs transitive-call review; lru 0.18.2 crosses a pre-1.0
compatibility boundary, and its advisory needs a panicking key
destructor plus unwinding/reuse (not present in the identified
txpool/Alloy/S3 key types). atty's unsoundness advisory is
Windows-specific. These are not silently suppressed.

### Rust 1.95 lint cleanup

Resolve the new Clippy findings across all targets/features: use sort
keys for quorum weights and relayer log indexes, remove redundant
iterator conversions, match P2P event conditions directly, and
consolidate preconfirmation broadcasting without changing which statuses
are sent. No lint suppressions are added.

- Full `cargo +1.95.0 clippy --locked --all-targets --all-features
--keep-going -- -D warnings`: **passed** on AArch64 macOS.
- Relayer tests: **74 passed**; transaction-status manager tests: **31
passed**, both with all features.
- P2P tests with all features: **64 passed, 2 ignored, 1 filtered** (the
previously identified local mDNS discovery test).
- Required nightly-2025-09-28 formatting applied and checked after the
changes.

## Compatibility investigation

Local tests ran on AArch64 macOS, the architecture affected by the
compiler vulnerability:

- Unmodified Wasmtime 48 compiled the integration without API edits and
passed all 9 existing executor tests. The new typed-reference guard
exposed the default feature expansion; it passes after pinning the
proposal set.
- In isolated Wasmtime 46 and 48 builds, both runtimes compiled the
stored ignition, ignition-v21, and v0.44 Wasm fixtures. Both also
executed the current STF compiled with Rust 1.94.1 and 1.95.0;
serialized validation results and storage changes matched native
execution for the mint-block smoke test. This is not an exhaustive
transaction/replay proof.
- All five inspected artifacts have maximum branch-table target counts
of **331**, below the new **65,520** limit. Boundary probes confirmed
that 46 accepts 65,521 and 48 rejects it. Future uploads must stay
within the supported runtime limits.
- Rust 1.94.1 and 1.95.0 report the same default
`wasm32-unknown-unknown` target features. Both artifacts pass the
older-runtime smoke test; their bytes and sizes do differ.

## Validation

- Snapshot/Parquet tests: **30 passed, 1 ignored** on Rust 1.94.1 with
the security lockfile updates.
- P2P tests with `test-helpers`: **64 passed, 2 ignored**, excluding the
local mDNS discovery test which waits indefinitely here. No test source
was changed to skip it.
- Final Wasmtime 48 executor tests with the pinned proposal set: **10
passed**. The separate temporary cross-version probe also passed and is
not included as a test with machine-specific paths.
- `cargo +1.95.0 check --locked -p fuel-core-client -p fuel-core-types`:
**passed** with the workspace-wide MSRV.
- Cargo metadata confirms all **41 workspace packages** declare Rust
**1.95.0**. Changed TOML and CI YAML parse successfully.
- Executor clippy (`--all-targets --features wasm-executor -- -D
warnings`): **passed** on Rust 1.95.
- `cargo +1.95.0 test --manifest-path version-compatibility/Cargo.toml
--workspace --locked`: **8 passed**, using the official v0.44 macOS
binary and a process-local open-file limit of 8192 (the macOS default of
256 exhausted RocksDB file descriptors). This includes the strengthened
mixed-runtime upgrade/script test. Compatibility-workspace clippy
(`--tests -p forkless-upgrade -- -D warnings`): **passed**.
- Required nightly-2025-09-28 formatting: applied and checked for both
workspaces.
- `cargo audit`: **passes with 0 unignored vulnerabilities / 14
warnings**, including the documented temporary crypto-bigint risk
acceptance. RustSec DB `965bf9ad083b58e6340d65829d85217b18be9290`
(2026-11-03).

## Checklist

- [x] Upstream runtime used; no maintained fork.
- [x] Previous Wasm proposal set retained; old forward-compatibility
baseline retained.
- [x] Rust 1.95 minimum applied consistently across the workspace and
documented for downstream consumers.
- [x] Document the accepted temporary crypto-bigint exception, upstream
blockers, and review/removal conditions.
- [ ] Complete Linux CI on the final commit. Full local Clippy now
passes; a fresh CI run is required for the latest lint fixes.
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.

1 participant