Repository navigation
fix(deps): bump url to 2.5.9 for RUSTSEC-2026-0592 - #630
Conversation
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.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters: 1
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
|
jatmn
left a comment
There was a problem hiding this comment.
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.
Summary
Bumps
urlfrom 2.5.8 to 2.5.9 inCargo.lockto clear RUSTSEC-2026-0592, the one advisory currently failing thecargo auditjob onmain.Motivation & context
url2.5.8 and earlier recurse without a depth limit inUrl::origin()on nestedblob:URLs, so an untrusted URL can overflow the stack and abort the process. 2.5.9 only resolves an inner origin forhttp,httpsandfile. The advisory was published after the last green run onmain, so every PR that touchesCargo.lockor.cargo/now failscargo auditfor a reason outside its diff.No linked issue.
Kind of change
What changed
Cargo.lockonly:url2.5.8 to 2.5.9, andform_urlencoded1.2.2 to 1.2.3 (required byurl2.5.9). NoCargo.tomlchange, nothing else moves.How a reviewer can verify
On
main's lockfilecargo auditreports1 vulnerability found(RUSTSEC-2026-0592). On this branch it exits 0 with only the already-waived warnings.Before you request review
cargo test --workspacepasses locally (not run in full: I rantwigpine-node --lib,twigpine-cliandtwigpine-core, all green; CI runs the full workspace)cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningsare cleanfeat(...),fix(...),docs(...)).env.exampleupdated if behavior or config changed (N/A)Protocol & signing impact
did:key, Ed25519 / RFC 9421 signatures, UCAN, ref certs, or P2P wire formatsNo protocol surface changes.
urlis a URL parser used for outbound requests, and the only behavior change is thatblob:URLs with an inner scheme other thanhttp,httpsorfilenow return an opaque origin.Notes for reviewers
Local test results:
twigpine-node --lib2335 passed, 0 failed;twigpine-cliandtwigpine-corepass;cargo check, fmt and clippy are clean on the workspace.This unblocks the
cargo auditjob on open PRs that carry the same lockfile (for example #623); they will need to merge or rebase ontomainonce this lands.