Skip to content

chore(deps): fix RUSTSEC advisories and ignore unfixable crypto-bigint RUSTSEC-2026-0387 - #51

Merged
storopoli merged 2 commits into
mainfrom
chore/audit-ignore-crypto-bigint
Oct 26, 2026
Merged

storopoli merged 2 commits into
mainfrom
chore/audit-ignore-crypto-bigint

Conversation

@storopoli

Copy link
Copy Markdown
Member

Description

cargo audit now fails on main. Five advisories published since its last run on 2026-10-19 hit the current lockfile. This PR clears all five, so the security workflow passes without waiting on #50.

Four have fixed releases, so this bumps them in the lockfile:

Crate From To Advisory
rustls-webpki 0.103.15 0.103.16 RUSTSEC-2026-0382
webpki-roots 1.0.9 1.0.11 RUSTSEC-2026-0381
webpki-root-certs 1.0.9 1.0.11 RUSTSEC-2026-0383
ctutils 0.4.2 0.4.6 RUSTSEC-2026-0385

crypto-bigint 0.5.5 (RUSTSEC-2026-0387) can't be fixed from here. The fix exists only in crypto-bigint 0.7.6. The latest alloy-signer (2.5.0) and alloy-primitives (1.7.3) still require k256/elliptic-curve 0.13, which pin crypto-bigint 0.5. This PR adds .cargo/audit.toml with the advisory ignored. The comment there records how the crate gets in, what it exposes and when to remove the entry.

What it exposes: k256 0.13 does its scalar arithmetic with crypto-bigint. EVM signing through the PrivateKeySigner from Seed::get_alpen_wallet therefore runs the private key through the affected subtraction code. An attacker would need to watch timing or microarchitectural state on the user's machine while the CLI signs. Bitcoin signing uses libsecp256k1 and doesn't touch crypto-bigint.

Upstream, alloy-rs/alloy#4445 tracks the advisory. alloy-rs/core#1147 moves alloy-primitives to k256 0.14, but alloy-signer needs the same bump before the entry can go.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency update
  • Security fix

Notes to Reviewers

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.

Related Issues

Related to #50.

… advisories

Lockfile-only updates:

- `rustls-webpki` 0.103.15 -> 0.103.16: RUSTSEC-2026-0382
- `webpki-roots` 1.0.9 -> 1.0.11: RUSTSEC-2026-0381
- `webpki-root-certs` 1.0.9 -> 1.0.11: RUSTSEC-2026-0383
- `ctutils` 0.4.2 -> 0.4.6: RUSTSEC-2026-0385
crypto-bigint 0.5.5 comes in through elliptic-curve 0.13 and k256 0.13,
which the latest alloy-signer and alloy-primitives still depend on. The
fix is only in crypto-bigint 0.7.6, so no lockfile update can reach it.

Add `.cargo/audit.toml` with the advisory ignored, and record how the
crate gets in, what it exposes in the CLI and when to drop the entry.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T11:50:33.993985Z e1d3759 PR opened
🔒 Security Review ✅ Completed 2026-10-26T11:52:33.663718Z e1d3759 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

🔒 AI Security Review (claude-opus-5-5)

✅ No security issues found.

@storopoli storopoli left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ACK e1d3759

@storopoli
storopoli merged commit 92fd6ff into main Oct 26, 2026
16 checks passed
@storopoli
storopoli deleted the chore/audit-ignore-crypto-bigint branch October 26, 2026 12:21
storopoli added a commit that referenced this pull request Nov 23, 2026
…ys RUSTSEC-2026-0459 (#67)

## Description

`cargo audit` currently fails on `main` due to three newly published
vulnerabilities (plus two fixable warnings):

### Lockfile-only fixes
- `url` `2.5.8` → `2.5.9` (with `form_urlencoded` `1.2.2` → `1.2.3`):
fixes `RUSTSEC-2026-0592`
- `quinn-udp` `0.5.15` → `0.5.16`: fixes `RUSTSEC-2026-0538`
- `rustix` `1.1.4` → `1.1.6`: clears unsoundness warning
`RUSTSEC-2026-0486`
- `async-executor` `1.14.0` → `1.14.1`: clears yanked crate warning

### Ignored unfixable advisory
- `libsqlite3-sys` `0.28.0` (`RUSTSEC-2026-0459`, SQLite
CVE-2026-119375, fixed in `>= 0.39.0` / `rusqlite >= 0.41.0`): pulled in
via `rusqlite 0.31.0`, which is required by `bdk_chain 0.23.3` (and
latest `0.23.4`, `rusqlite = "^0.31.0"` with `bundled`) through
`bdk_wallet 3.2.0` (latest). Added to `.cargo/audit.toml` with exposure
analysis and removal condition.

### Type of Change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature/Enhancement (non-breaking change which adds
functionality or enhances an existing one)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update
- [ ] Refactor
- [ ] New or updated tests
- [x] Dependency update
- [x] Security fix

## Notes to Reviewers

- `RUSTSEC-2026-0459` requires a local attacker to craft a SQLite
database paired with a mismatched `-wal` file that the CLI opens; the
CLI only opens its own local wallet database.
- Mirrors the approach from #51 (`RUSTSEC-2026-0387`).

## Checklist

- [x] I have performed a self-review of my code.
- [x] I have commented my code where necessary.
- [ ] I have updated the documentation if needed.
- [x] My changes do not introduce new warnings.
- [ ] I have added tests that prove my changes are effective or that my
feature works.
- [x] New and existing tests pass with my changes.

## Related Issues

None.
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