Repository navigation
Bump url to 2.5.9 for RUSTSEC-2026-0592 - #31
Merged
Merged
Conversation
cargo deny fails on main: RUSTSEC-2026-0592, a stack overflow in Url::origin() on nested blob: URLs, flags url 2.5.8, which the integration tests reach through testcontainers 0.28 and bollard 0.21. url 2.5.9 has the fix. It requires form_urlencoded ^1.2.3, so that moves from 1.2.2 to 1.2.3 with it; nothing else in Cargo.lock changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since RUSTSEC-2026-0592 was published,
cargo deny checkfails onmain, so thedenyjob fails on every push tomainand on every open pull request. The advisory reports a stack overflow inUrl::origin()on nestedblob:URLs, and it flagsurl2.5.8. The workspace pulls inurlonly throughtestcontainers0.28 andbollard0.21, which are dev-dependencies ofapache-pulsarfor the integration tests. No shipped code uses it, but the failing check blocks every PR.Example
The
denyjob onmainat e6221c7 (run 45041578216):How the tests reach it:
url2.5.8 ←bollard0.21.1 ←testcontainers0.28.0 ←apache-pulsar(dev-dependencies).Change
cargo update -p url --precise 2.5.9changes two entries inCargo.lockand nothing else:urlform_urlencodedurl2.5.9 requiresform_urlencoded^1.2.3, so the two have to move together. Version 1.2.3 keeps 1.2.2's features and minimum Rust version. Its only dependency change,percent-encoding^2.3.2, is already satisfied by the lockfile.deny.tomlis unchanged: this upgradesurlrather than adding a secondignoreentry.Testing
cargo deny check: advisories ok, bans ok, licenses ok, sources ok. Only the existing duplicate-crate warnings remain.cargo clippy --workspace --all-targets -- -D warnings: clean.cargo test --workspace: 510 passed.cargo test -p apache-pulsar --test integration: 50 passed, 1 ignored (a_stream_consumer_reads_a_regular_topic, whichmainignores too). This suite matters here becausebollard, which builds the tests' Docker client, usesurl.