Tested

Rust url RUSTSEC-2026-0592 still fails CI after updating Cargo.lock

If CI still reports RUSTSEC-2026-0592 after you updated url, check which Cargo.lock the failing job reads. Updating the root lockfile does not change the separate lockfile of a fuzz target, a desktop app or another independent Cargo project. In our test, the root scan came back clean while the second lockfile still reported the advisory. The first patched url release is 2.5.9.

Next step. Check your repository for other dated changes. The Breakage Calendar checker reads a repository folder you choose and shows the dated changes whose searches match your files. It does not read Cargo.lock advisories, so use the commands below for url.

RustSec issued RUSTSEC-2026-0592 (alias GHSA-hrj5-67jp-wqp9) on 22 November 2026. It covers a stack overflow in Url::origin() and url::quirks::origin() on deeply nested blob: URLs, in url 2.5.8 and earlier. One public example: citum-core pull request 1321, which also upgraded gix, updated url to 2.5.9 in both its workspace lockfile and its fuzz/Cargo.lock.

Find the lockfile CI scanned

Open the failing job and check its working directory, manifest path and scanner flags. Members of a Cargo workspace share one lockfile at the workspace root. An independent Cargo project, such as a fuzz directory outside the workspace, has its own. If the job uses cargo-audit, you can name each lockfile explicitly. The paths below are from our test project; replace them with yours.

cargo audit --file Cargo.lock --json
cargo audit --file desktop/Cargo.lock --json

In each report, find the advisory ID and the url version; without --json, cargo-audit prints Crate, Version and ID on separate lines. Then trace which of your dependencies brings in url, from the manifest that owns the failing lockfile.

cargo tree --locked --manifest-path desktop/Cargo.toml -i url

If Cargo reports several url versions, pass each affected version from the scan as the package, such as url@2.5.8. In a test lockfile holding url 1.7.2 and 2.5.8, cargo-audit reported both copies, and cargo update --manifest-path <manifest> -p url@2.5.8 --precise 2.5.9 moved only the 2.5.8 copy; plain -p url was refused as ambiguous. A 1.x copy stays reported until the crate that requires it allows url 2.5.9 or later. If the job uses cargo-deny, OSV-Scanner or a wrapper script instead, rerun that job itself after the update. A scan that could not read the lockfile or its advisory database tells you nothing either way.

Update the failing lockfile

If cargo tree shows one url version and your manifests allow a 2.5 release, update url from the manifest that owns the failing lockfile, then trace and scan again:

cargo update --manifest-path desktop/Cargo.toml -p url --precise 2.5.9
cargo tree --locked --manifest-path desktop/Cargo.toml -i url
cargo audit --file desktop/Cargo.lock --json

If the lockfile already resolves a url release later than 2.5.9, keep it.

Review the whole lockfile diff. url 2.5.9 requires form_urlencoded 1.2.3 or a later 1.x release, where 2.5.8 accepted 1.2.2, so a lockfile still on form_urlencoded 1.2.2 changes that entry too. If Cargo refuses the update, its message names the version requirement that blocks it and the crate that sets it. Change that requirement if it is yours; otherwise look for a release of that crate that allows url 2.5.9. Then rerun the original CI job, in its own directory with its own scanner and settings, along with your normal builds and tests. Any other advisory in the report has its own patched versions; check each one separately.

What our test showed

The test project had two independent lockfiles, each with one copy of url through the same local dependency. It ran in the official rust Docker image, pinned by digest, with Cargo 1.99.1, cargo-audit 0.23.0 and one fixed copy of the RustSec database, with no advisories ignored.

StageRoot lockfileDesktop lockfile
Before any update2.5.8 · RUSTSEC-2026-05922.5.8 · RUSTSEC-2026-0592
After updating the root only2.5.9 · no vulnerabilities2.5.8 · RUSTSEC-2026-0592
After updating the desktop lockfile2.5.9 · no vulnerabilities2.5.9 · no vulnerabilities
After a plain cargo update in both2.5.9 · no vulnerabilities2.5.9 · no vulnerabilities

After the root-only update, the desktop lockfile was byte-for-byte unchanged. The test covers which url version each lockfile resolves and what cargo-audit reports for it. Whether your application is exposed depends on whether it calls the affected functions on untrusted URLs; the scan does not tell you that.

Sources

Check your repository for other dated changes

Corrections can be sent to hello@cybernative.ai. We publish dated corrections.

Check your repository for other dated changes