chore: update aws-lc-sys to fix security vulnerabilities#45
chore: update aws-lc-sys to fix security vulnerabilities#45mostronatorcoder[bot] wants to merge 2 commits intomainfrom
Conversation
Updates aws-lc-rs 1.15.4 → 1.16.2 and aws-lc-sys 0.37.0 → 0.39.0 Fixes the following security advisories: - GHSA-394x-vwmw-crm3: X.509 Name Constraints Bypass via Wildcard/Unicode CN - RUSTSEC-2026-0044: CRL Distribution Point Scope Check Logic Error - PKCS7_verify Signature Validation Bypass - Timing Side-Channel in AES-CCM Tag Verification - PKCS7_verify Certificate Chain Validation Bypass All patched in aws-lc-sys >= 0.39.0
|
@coderabbitai review please!! Don't tell me you don't work on saturdays!?!? 😄 |
|
One important heads-up based on a previous learning from this repository: directly overriding I'll factor this into the full review now! 👇 🧠 Learnings used✅ Actions performedReview triggered.
|
WalkthroughDependencies in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@Cargo.toml`:
- Around line 32-37: The updated rustls = "0.23.37" entry in Cargo.toml pulls in
aws-lc-sys 0.39.0 which breaks Windows/MSVC builds; to fix, revert or pin rustls
to the last known-compatible patch (e.g., 0.23.36) in the Cargo.toml entry for
rustls or add a crates-io override/patch to force a compatible
aws-lc-sys/aws-lc-rs version, and add a short PR note acknowledging the
Dependabot alert and that Windows/MSVC builds are intentionally guarded until
upstream (e.g., nostr-sdk/aws-lc-rs) provides a compatible release.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b2dbe67c-40cf-42fc-b926-625b9e48bf96
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (1)
Cargo.toml
| reqwest = { version = "0.13.2", default-features = false, features = [ | ||
| "rustls", | ||
| "json", | ||
| "http2", | ||
| ] } | ||
| rustls = { version = "0.23.37", features = ["ring"] } |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify the transitive dependency chain and aws-lc-sys version
echo "Checking Cargo.lock for aws-lc-sys version..."
rg "name = \"aws-lc-sys\"" -A2 Cargo.lock
echo ""
echo "Checking rustls dependency chain..."
rg "name = \"rustls\"" -A5 Cargo.lock | head -20
echo ""
echo "Checking if project has Windows CI or targets..."
fd -e yml -e yaml . .github/workflows --exec cat {} \; 2>/dev/null | rg -i "windows" || echo "No Windows CI config found in workflows"Repository: MostroP2P/mostrix
Length of output: 714
rustls 0.23.37 will break Windows/MSVC builds via aws-lc-sys 0.39.0.
Updating rustls to 0.23.37 introduces aws-lc-sys 0.39.0 as a transitive dependency, which fails on Windows/MSVC because the build system does not pass /std:c11 to cl.exe, causing "C atomics require C11 or later" errors. Your project includes Windows CI targets, making this a breaking change.
Recommendation: Wait for upstream crates (e.g., nostr-sdk) to adopt a compatible aws-lc-rs/aws-lc-sys version that builds on Windows. Acknowledge the Dependabot alerts in the GitHub UI with a note about this incompatibility until upstream support is available.
If Windows support is not a project requirement, document that decision before merging.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@Cargo.toml` around lines 32 - 37, The updated rustls = "0.23.37" entry in
Cargo.toml pulls in aws-lc-sys 0.39.0 which breaks Windows/MSVC builds; to fix,
revert or pin rustls to the last known-compatible patch (e.g., 0.23.36) in the
Cargo.toml entry for rustls or add a crates-io override/patch to force a
compatible aws-lc-sys/aws-lc-rs version, and add a short PR note acknowledging
the Dependabot alert and that Windows/MSVC builds are intentionally guarded
until upstream (e.g., nostr-sdk/aws-lc-rs) provides a compatible release.
Summary
Updates
aws-lc-rsandaws-lc-systo fix multiple security vulnerabilities.Changes
Security Advisories Fixed
Notes
aws-lc-sysis a transitive dependency throughrustls→aws-lc-rs. Runningcargo update aws-lc-rspulls in the latest patched version.All advisories are patched in
aws-lc-sys >= 0.39.0.Summary by CodeRabbit