Skip to content

fix(deps): resolve anyhow and nanoid advisories - #455

Closed
SafraNako wants to merge 1 commit into
dfinity:mainfrom
SafraNako:fix/anyhow-nanoid-advisories
Closed

fix(deps): resolve anyhow and nanoid advisories#455
SafraNako wants to merge 1 commit into
dfinity:mainfrom
SafraNako:fix/anyhow-nanoid-advisories

Conversation

@SafraNako

Copy link
Copy Markdown

What

  • `anyhow` `1.0.98` → `1.0.103`: RUSTSEC-2026-0190 (`Error::downcast_mut` unsoundness)
  • `nanoid` `3.3.16` → `3.3.18`: GHSA-2v37-7h3g-55p8 (custom generators loop indefinitely when size is zero)

Both via `cargo update` / `npm audit fix`, within existing manifest ranges — no manifest changes.

(`js-yaml`/`brace-expansion`, also flagged by my scan, are already patched on `main` via #445/#432/#409. `vitest`/`@vitest/mocker` already has #453/#454 open for the exact same bump, so left untouched here to avoid duplicating those.)

Verified locally

`cargo check --workspace --all-targets` resolves and compiles every dependency (including the bumped `anyhow`) cleanly; the only failure is the workspace's single member, `governance-app-backend`, failing at its `include_dir!("../governance-app-frontend/dist")` because that frontend bundle isn't built in my environment — unrelated to this change (confirmed the same failure exists on unmodified `main`).

🤖 Generated with Claude Code

- anyhow 1.0.98 -> 1.0.103: RUSTSEC-2026-0190 (Error::downcast_mut unsoundness)
- nanoid 3.3.16 -> 3.3.18: GHSA-2v37-7h3g-55p8 (custom generators loop
  indefinitely when size is zero)

Both via cargo update / npm audit fix, within existing manifest ranges.
(js-yaml and brace-expansion, also flagged by an earlier scan, are
already patched on main via dfinity#445/dfinity#432/dfinity#409; vitest/@vitest-mocker
already has dfinity#453/dfinity#454 open for the exact same bump, so left untouched
here to avoid duplicating those.)

Verified locally: `cargo check --workspace --all-targets` resolves and
compiles every dependency (including the bumped anyhow) cleanly; the
only failure is the workspace's single member, governance-app-backend,
failing at its `include_dir!("../governance-app-frontend/dist")` because
that frontend bundle isn't built in my environment -- unrelated to this
change (confirmed the same failure exists on unmodified main).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 12, 2026 10:30
@SafraNako
SafraNako requested a review from a team as a code owner September 12, 2026 10:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

Thank you for contributing! Unfortunately this repository does not accept external contributions yet.

We are working on enabling this by aligning our internal processes and our CI setup to handle external contributions. However this will take some time to set up so in the meantime we unfortunately have to close this Pull Request.

We hope you understand and will come back once we accept external PRs.

— The DFINITY Foundation

@zeropath-ai

zeropath-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to c501801.

Security Overview
Detected Code Changes
Change Type Relevant files
Enhancement ► Cargo.lock
    Update dependency versions in lockfile (anyhow 1.0.98 -> 1.0.103) and related checksum changes
► package-lock.json
    Bump brace-expansion and related nested dependencies (brace-expansion 2.1.2/1.1.16/etc. to 2.1.4/1.1.18, 5.0.7 to 5.0.9, etc.)
    Update node engine constraint to "20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants