Skip to content

ci: allow RUSTSEC-2026-0620 in the Rust audit, with the reason - #115

Merged
M0nsxx merged 1 commit into
mainfrom
fix/rust-audit-0620
Dec 3, 2026
Merged

M0nsxx merged 1 commit into
mainfrom
fix/rust-audit-0620

Conversation

@Eras256

@Eras256 Eras256 commented Dec 3, 2026

Copy link
Copy Markdown
Member

The Security Gate on main went red after #114 because of RUSTSEC-2026-0620 (curve25519-dalek 4.1.3, a bug in the AVX-512 scalar multiplication).

We can't take the fix from this repo:

  • curve25519-dalek 4.1.3 comes in through ed25519-dalek 2.x, under soroban-sdk 29.0.1.
  • ed25519-dalek 2.x needs ^4, and the fixed release is 5.1.0. cargo update -p curve25519-dalek --precise 5.1.0 fails.
  • The broken code isn't compiled here. In 4.1.3 the AVX-512 path only builds with cfg(all(curve25519_dalek_backend = "simd", nightly)). CI uses stable, and the contracts build for wasm32, which never picks the simd backend.

So the gate ignores this one advisory, and the reason sits next to the existing RUSTSEC-2026-0387 entry. The other findings are still reported as allowed warnings, and any new advisory still fails the gate. We should look at this again with the next soroban-sdk major.

Checked locally: cargo audit --ignore RUSTSEC-2026-0387 --ignore RUSTSEC-2026-0620 exits clean with 13 allowed warnings.

🤖 Generated with Claude Code

curve25519-dalek 4.1.3 is held by ed25519-dalek 2.x under soroban-sdk 29.0.1, the fixed 5.1.0 cannot be resolved, and the affected AVX-512 path only compiles on nightly with the simd backend, which neither CI nor the wasm32 contracts use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@M0nsxx M0nsxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI-assisted review (Claude)

Read the diff: it only adds --ignore RUSTSEC-2026-0620 to the cargo audit step, with the reason next to the existing 0387 entry. The root Cargo.lock has curve25519-dalek 4.1.3 under ed25519-dalek 2.2.0 and soroban-sdk 29.0.1, so the fixed 5.x can't be resolved from here, and the AVX-512 path needs nightly with the simd backend, which CI and the wasm32 contracts don't use. Every other advisory still fails the gate, and all 7 checks pass on this branch. Approving.

@M0nsxx
M0nsxx merged commit 44fa06e into main Dec 3, 2026
7 checks passed
@M0nsxx
M0nsxx deleted the fix/rust-audit-0620 branch December 3, 2026 05:59
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.

2 participants