-
Notifications
You must be signed in to change notification settings - Fork 28
chore(deps): update alloy to 1.2.1 and fix ruint security vulnerability #766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update alloy to 1.2.1 and fix ruint security vulnerability #766
Conversation
- Update alloy from 1.0.22 to 1.2.1 - Pin libp2p-core and libp2p-swarm to exact versions to resolve patch ambiguity - Fixes RUSTSEC-2025-0137 (ruint unsoundness in reciprocal_mg10)
|
Claude finished @diegomrsantos's task in 1m 54s —— View job Code Review CompleteTasks
SummaryThis PR appropriately addresses a security vulnerability and updates dependencies. The changes are focused and minimal, which is good for a dependency update. CI tests are passing. Detailed Review1. Security Fix ✅RUSTSEC-2025-0137 (ruint unsoundness): The PR correctly updates Verification: Cargo.lock:164 shows 2. Alloy Update (1.0.22 → 1.2.1)Impact Assessment:
Observations:
3. libp2p Version PinningChange: Modified patch section to use exact version matching ( [patch.'https://github.com/libp2p/rust-libp2p.git']
-libp2p-core = "0.43.1"
-libp2p-swarm = "0.47.0"
+libp2p-core = "=0.43.1"
+libp2p-swarm = "=0.47.0"Analysis:
Considerations:
4. Code QualityPositive aspects:
5. TestingCI Status: Tests are in progress. Key jobs:
Recommendations
ConclusionThe PR correctly addresses the security vulnerability and makes appropriate dependency updates. The approach is conservative and well-documented. Once CI completes successfully, this is ready to merge. |
jking-aus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
shane-moore
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegomrsantos, i was able to resolve this over in lighthouse a few days ago in PR by bumping the ruint version. here, did you bump the alloy version, and then got the updated ruint as a side effect? jc. it looks like the build passes so don't see an issue with this approach
I'm unfamiliar with the libp2p dependency source overrides so hard for me to comment on whether pinning the versions is necessary or otherwise
I understand that |
|
@diegomrsantos, yep, |
Issue Addressed
Fixes CI failure: https://github.com/sigp/anchor/actions/runs/20666620673/job/59340149125
Proposed Changes
alloyfrom 1.0.22 to 1.2.1libp2p-coreandlibp2p-swarmto exact versions to resolve patch ambiguityruintfrom 1.17.0 to 1.17.2, fixing RUSTSEC-2025-0137 (unsoundness inreciprocal_mg10)Additional Info
The
ruintvulnerability (RUSTSEC-2025-0137) was causingcargo auditto fail in CI. The fix requiresruint >= 1.17.1.