Skip to content

security: resolve RUSTSEC-2026-0592 in url 2.5.8 without bypassing Rust audit gates #1219

Open

Description

@hyperpolymath

Observed security blocker — 2026-11-23

In Hypatia's PR #1216, the Security workflow for commit 2f33a88cf8bf26ed4c34d6e0d941a45850ab633e failed in both Rust License & Ban Check (cargo-deny) and Rust Dependency Audit (cargo-audit). Both report:

  • RUSTSEC-2026-0592 — stack overflow in Url::origin() when nested blob: URLs are processed.
  • Dependency at Cargo.lock: url 2.5.8.
  • Advisory explicitly identifies url >= 2.5.9 as the fixed family and suggests cargo update -p url.
  • Direct/transitive consumers include Hypatia adapters and infrastructure crates; determine whether any reachable origin() path handles untrusted input. Even where reachability is unknown, the independently-red CI gate remains a blocker.

Reference job IDs and evidence:

Provenance: Neither review PR #1216 nor collector PR #1218 modifies the Rust dependency lock or direct Cargo dependencies. The failure is observed on the review branch, but these PRs did not introduce the lock entry. Do not describe this as resolved, or weaken audit to obtain a pass. Historical main-branch CI status and impact/reachability have not been independently established in this work session.

Repair work order

  • Reconfirm the current default-branch Cargo.lock and existing open security-fix PRs, avoiding duplicate ownership.
  • With pinned Rust tooling, test cargo update -p url --precise 2.5.9 or a newer compatible fixed release. Inspect the dependency graph and inspect lockfile diff; do not hand-edit Cargo.lock.
  • Test the Rust workspace and dependent integration/tests. Ensure no unwanted downgrade or broad lock churn, preserve reproducibility.
  • Run cargo-deny and cargo-audit and record version, advisory DB revision, exit status and exact commit. Distinguish the 1 vulnerability from separately reported unmaintained-crate warnings (not silently reclassified).
  • Require a separately reviewable PR; do not put the Rust upgrade in the unrelated Hypatia external-review intake PR.
  • Once independently verified, evaluate whether this blocker affects release/merge eligibility for feat(review): non-authorising external observations and read-only GitHub collector #1216 and feat(review): bounded read-only GitHub bot-review collector #1218; no bypass or false pass.

Acceptance: url resolution is fixed across all relevant Rust lock entries and both independent security jobs return success for the patch's exact commit, with no regression in workspace tests.

Activity

  1. added
    chore
    security
    on Nov 23, 2026
  2. whatproblem-ai commented on Nov 23, 2026

    @whatproblem-ai

    The job IDs, exact commit, and the named fixed release (url >= 2.5.9) mean someone can pick this up and verify it without guessing.

    In short, Cargo.lock pins url 2.5.8, which is affected by RUSTSEC-2026-0592 (stack overflow in Url::origin() on nested blob: URLs). Both cargo-deny and cargo-audit fail on #1216's commit 2f33a88, even though neither #1216 nor #1218 touched Rust dependencies. The fix should be a separate PR that bumps url through cargo update with minimal lock churn. Both audit jobs must pass on that exact commit, and the gates must not be weakened.

    One scoping question: does "all relevant Rust lock entries" mean only the root workspace Cargo.lock, or do some adapter or infrastructure crates keep their own lockfiles that also need the bump?


    🏆 Clarity Score: 93% - Great detail! 💫

    ⌨️ Commands · 💬 Have feedback? Tell us · 🎯 New here? Add WhatProblem to your repo · 🔒 Privacy

  3. added
    bug
    cicd
    on Nov 23, 2026
  4. hyperpolymath commented on Nov 23, 2026

    @hyperpolymath
    OwnerAuthor

    Update: pre-existing status now verified at source. I fetched Cargo.lock from main, feat/review-observation-admission-20261123 and feat/review-github-collector-20261123. All three have the identical Git blob SHA 30d41a9fb72dfdfcbd4f73398649e7f2ccf4cb5c and resolve url 2.5.8. Thus the relevant vulnerable lockfile was present before either review-intake branch, not introduced by #1216 or #1218. The Rust security job on #1216 correctly failed on RUSTSEC-2026-0592, and no bypass has been made. Remediation with a tool-generated lock update and independent Rust/Security checks is still outstanding.

  5. whatproblem-ai commented on Nov 23, 2026

    @whatproblem-ai

    The matching blob SHA 30d41a9f… on main and both review branches confirms url 2.5.8 predates #1216 and #1218. The fix therefore belongs on main, and the review branches should pick it up by rebasing or merging, not through their own lock edits. Since you refer to a single shared lockfile, I'm treating the root Cargo.lock as the only one in scope unless you say otherwise.


    ✅ Nothing further needed. Clarity: 90%

    ⌨️ Commands · 💬 Have feedback? Tell us · 🎯 New here? Add WhatProblem to your repo · 🔒 Privacy

  6. hyperpolymath commented on Nov 23, 2026

    @hyperpolymath
    OwnerAuthor

    Attempted isolated dependency repair (2026-11-23)

    I confirmed the authorized WSL workstation has Cargo 1.85.1 and a clean local Hypatia checkout whose root Cargo.lock Git blob is exactly 30d41a9fb72dfdfcbd4f73398649e7f2ccf4cb5c — identical to the remote main branch's affected lockfile. Created a detached, isolated worktree under /home/hyperpolymath/developer/worktrees/hypatia-rustsec-20261123; the original checkout was untouched.

    Executed:

    cargo update --manifest-path /home/hyperpolymath/developer/worktrees/hypatia-rustsec-20261123/Cargo.toml -p url --precise 2.5.9 --offline

    Result: NOT FIXED. Cargo returned error: no matching package named hmac found (offline crates.io index lacks hmac, required by hypatia-adapters), exit 1. After the attempt, git status --short was empty and Cargo.lock still had the original exact Git blob; no fake/generated lockfile, no manual checksum edits, no audit waiver, no new PR. WSL general GitHub HTTPS resolution also failed (Could not resolve host: github.com), while the authenticated GitHub REST API was available via gh api; ordinary registry access therefore cannot be presumed.

    Remaining dependency: run the same targeted cargo update -p url --precise 2.5.9 in a properly networked runner with crates.io sparse-index access (or a complete authenticated offline cargo cache), inspect exact lockfile diff, run Rust workspace tests, cargo-deny and cargo-audit on the generated revision, then open a separate security PR and pick it into #1216. Do not substitute a hand-edited Cargo.lock or claim the advisory resolved.

    This is an environmental access/cache blocker, not evidence that url cannot be updated compatibly.

  7. hyperpolymath commented on Nov 23, 2026

    @hyperpolymath
    OwnerAuthor

    2026-11-23 resolution progress: targeted lock update generated; security CI pending

    The previous WSL offline attempt failed because its crates.io cache lacked hmac. The authorised Windows host, however, successfully retrieved the crates.io index and ran Cargo 1.99.1 against a fresh, isolated clone of main at d158aed87f76b93e4f291e995bef9f26559c7fb2:

    cargo update -p url --precise 2.5.9
    cargo metadata --no-deps --locked --format-version 1

    Both completed successfully. A full byte comparison with main showed only four generated lockfile lines changed: url 2.5.8→2.5.9 and checksum, form_urlencoded 1.2.2→1.2.3 and checksum. Original blob 30d41a9fb72dfdfcbd4f73398649e7f2ccf4cb5c; updated blob d8c0f251afd6bea8ec7b4f48983eb58d1bba4234.

    Separate draft security PR: #1225, based directly on main, modifies only Cargo.lock. No manual checksum edits, manifest edits, rule bypasses, suppression or weakening of audits.

    Still open/blocked: the Linux CI workspace tests and both real Security jobs on the exact PR head must pass. Only after an independent merge into main should #1216/#1220 refresh their base. This comment does not claim the vulnerability fixed in the default branch yet.

  8. hyperpolymath commented on Nov 23, 2026

    @hyperpolymath
    OwnerAuthor

    Security verification update (2026-11-23): draft PR #1225 generated and commits the exact lockfile update url 2.5.8 -> 2.5.9, form_urlencoded 1.2.2 -> 1.2.3, with corresponding registry checksums only. Its Security workflow run 45150576721 has now completed successfully: Rust Dependency Audit, Rust License & Ban Check, CodeQL, Trivy container scan, secret checks, licence check, SBOM, and Security Status roll-up all green, no waivers. The GitHub CI and Rust workspace workflows are still completing, and this fix remains unmerged; issue stays open until integration into main and revalidation of dependent #1216/#1220.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugchorecicdsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions