Skip to content

fix(deps): bump url to 2.5.9 for RUSTSEC-2026-0592 - #630

Merged
beardthelion merged 1 commit into
mainfrom
fix/url-2-5-9-rustsec-2026-0592
Nov 23, 2026
Merged

beardthelion merged 1 commit into
mainfrom
fix/url-2-5-9-rustsec-2026-0592

Conversation

@beardthelion

Copy link
Copy Markdown
Collaborator

Summary

Bumps url from 2.5.8 to 2.5.9 in Cargo.lock to clear RUSTSEC-2026-0592, the one advisory currently failing the cargo audit job on main.

Motivation & context

url 2.5.8 and earlier recurse without a depth limit in Url::origin() on nested blob: URLs, so an untrusted URL can overflow the stack and abort the process. 2.5.9 only resolves an inner origin for http, https and file. The advisory was published after the last green run on main, so every PR that touches Cargo.lock or .cargo/ now fails cargo audit for a reason outside its diff.

No linked issue.

Kind of change

  • Bug fix
  • Feature
  • Security fix
  • Docs
  • Tests / CI
  • Refactor (no behavior change)
  • Breaking or protocol change (issue required first)

What changed

  • Cargo.lock only: url 2.5.8 to 2.5.9, and form_urlencoded 1.2.2 to 1.2.3 (required by url 2.5.9). No Cargo.toml change, nothing else moves.

How a reviewer can verify

git diff origin/main --stat   # Cargo.lock only
cargo audit                   # 0.22.2; red on main with RUSTSEC-2026-0592, exit 0 here
cargo check --locked --workspace --all-targets

On main's lockfile cargo audit reports 1 vulnerability found (RUSTSEC-2026-0592). On this branch it exits 0 with only the already-waived warnings.

Before you request review

  • Scope is one logical change; no unrelated churn
  • cargo test --workspace passes locally (not run in full: I ran twigpine-node --lib, twigpine-cli and twigpine-core, all green; CI runs the full workspace)
  • New behavior is covered by tests (required for fixes) (N/A, lockfile bump with no new behavior)
  • cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings are clean
  • Commit titles use Conventional Commits (feat(...), fix(...), docs(...))
  • Docs / .env.example updated if behavior or config changed (N/A)
  • Checked existing PRs so this isn't a duplicate

Protocol & signing impact

  • Touches DID / did:key, Ed25519 / RFC 9421 signatures, UCAN, ref certs, or P2P wire formats
  • Discussed in an issue before implementation
  • Backward-compatible with existing nodes and previously signed history

No protocol surface changes. url is a URL parser used for outbound requests, and the only behavior change is that blob: URLs with an inner scheme other than http, https or file now return an opaque origin.

Notes for reviewers

Local test results: twigpine-node --lib 2335 passed, 0 failed; twigpine-cli and twigpine-core pass; cargo check, fmt and clippy are clean on the workspace.

This unblocks the cargo audit job on open PRs that carry the same lockfile (for example #623); they will need to merge or rebase onto main once this lands.

url 2.5.8 recursed without a depth limit on nested blob: URLs in Url::origin(), so an untrusted URL could overflow the stack. 2.5.9 only resolves an inner origin for http, https and file. Lockfile only: url 2.5.8 to 2.5.9 and form_urlencoded 1.2.2 to 1.2.3.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec3e4fb6-78bc-41dd-b573-846cfcca6885

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@jatmn jatmn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I do not see actionable code defects in this diff. Rebase onto current main before merge so verification commands and branch history match what landed in #620.

Merge readiness

Rebase onto live main before merge. The branch is one commit behind origin/main (55b2c9e, #620 model-hosting foundation). The lockfile bump still merges cleanly (automatic Cargo.lock merge verified), but until rebase the PR body’s git diff origin/main --stat step can show unrelated churn instead of the four-line url / form_urlencoded bump. Rebasing also keeps #623-style stacked work aligned once this lands.

GitHub merge gate: reviewDecision is REVIEW_REQUIRED and mergeStateStatus is BLOCKED pending review approval, not conflicts. mergeable is MERGEABLE. All required CI jobs on head are green, including cargo audit, test (stable), test (beta), fmt + clippy, and build --release.

Author checklist: cargo test --workspace is unchecked in the PR template, but CI ran the full Rust matrix for this Cargo.lock change. No follow-up required from that checkbox alone.

Findings

🟢 No verified code, test, or in-diff operator-contract defects on head 45b9a6df.

This diff only updates Cargo.lock (url 2.5.8 → 2.5.9, form_urlencoded 1.2.2 → 1.2.3). Workspace manifests already allow url = "2". Local cargo check --locked --workspace --all-targets and cargo audit (with .cargo/audit.toml) pass on the review checkout. There are no first-party Url::origin() call sites; outbound URL policy uses reqwest::Url::parse plus scheme/host checks in is_public_http_url and related paths, unchanged by this PR.

@beardthelion
beardthelion added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 6872d77 Nov 23, 2026
21 checks passed
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