Skip to content

chore(deps): ignore RUSTSEC-2026-0387 until alloy moves to k256 0.14 - #2797

Closed
yigitdot wants to merge 1 commit into
mainfrom
fix/2796-ignore-rustsec-2026-0387
Closed

yigitdot wants to merge 1 commit into
mainfrom
fix/2796-ignore-rustsec-2026-0387

Conversation

@yigitdot

Copy link
Copy Markdown
Contributor

Summary

cargo deny check fails locally on RUSTSEC-2026-0387 (constant-time violations in crypto-bigint, fixed only in >=0.7.6). CI only annotates it. This PR adds a justified ignore entry to deny.toml, a ### Security CHANGELOG entry, and links the tracking issue #2796.

Why an ignore, not an upgrade

The chain is crypto-bigint 0.5.5 <- elliptic-curve 0.13.8 <- k256 0.13.4 <- alloy-signer 2.5.0 / alloy-signer-local 2.5.0 / alloy-primitives 1.7.3 <- alloy.

Exposure, stated honestly

The entry does not claim we are unaffected:

  • Secrets do pass through crypto-bigint. k256 0.13 stores each secp256k1 scalar as a crypto-bigint U256. It does scalar add, subtract and negate (add_mod, sub_mod, neg_mod) and the < n range check (ct_lt) with crypto-bigint. So the signing key and the z + r*d term of every ECDSA signature go through it.
  • The rest of the signing path is k256 code. That covers scalar multiplication, inversion, and all field and point arithmetic. Signing uses no crypto-bigint division, zero count or Montgomery form.
  • Every PrivateKeySigner signature takes this path: payment vouchers, EIP-712 capabilities, probe and stream slash_sig, and transactions.
  • A remote peer can trigger signatures, but timing them is hard. A peer can make a node sign through cdn/probe/v1 and cdn/client/v1. It sees the signing time only through QUIC and scheduler jitter.
  • Codegen is unchecked. Whether our builds contain any of the compiler-introduced branches the advisory describes is not verified.

The header comment of deny.toml changes too. It said all suppressed advisories were "unmaintained" notices with no runtime exposure, and it carried a date stamp. Both are no longer true.

Test plan

  • cargo deny check exits 0 (advisories, bans, licenses and sources all ok; the remaining warnings are the existing duplicate and wildcard ones)
  • .github/scripts/cargo-deny-warn.sh exits 0
  • pre-commit run --files deny.toml CHANGELOG.md passes (markdownlint, cargo-deny and the whitespace hooks)

No code, wire, config or ABI change.

🤖 Generated with Claude Code

…2796)

crypto-bigint 0.5.5 reaches the workspace through elliptic-curve 0.13 ->
k256 0.13 -> alloy-signer / alloy-signer-local / alloy-primitives. The fix
ships only in crypto-bigint >=0.7.6, and the latest alloy still requires
k256 ^0.13, so no update clears it. The deny.toml entry records that
k256 0.13 scalar add/sub/neg and range checks run on the signing key
through crypto-bigint, and what to watch before the entry can go.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yigitdot yigitdot added kind:security Security impact; report a vulnerability to [email protected], not here dependencies Dependabot: a dependency update labels Oct 30, 2026
Copilot AI balanced review requested due to automatic review settings October 30, 2026 23:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

main a92727a fix/2796-ignore-rust... be5bd83 +/-
77% 77% 0%
View coverage of the 3 most impacted files.
File main a92727a fix/2796-ignore-rust... be5bd83 +/-
crates/node/src/dht/publish.rs 80% 78% -2%
crates/client/src/lib.rs 89% 89% 0%
crates/node/src...gin/pull_leg.rs 84% 84% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@thiras thiras added the status:blocked Waits on another PR, an upstream fix or a decision label Oct 31, 2026
@thiras thiras closed this Nov 1, 2026
@yigitdot
yigitdot deleted the fix/2796-ignore-rustsec-2026-0387 branch November 13, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependabot: a dependency update kind:security Security impact; report a vulnerability to [email protected], not here status:blocked Waits on another PR, an upstream fix or a decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants