Skip to content

Bump url to 2.5.9 for RUSTSEC-2026-0592 - #31

Merged
merlimat merged 1 commit into
mainfrom
bump-url-2.5.9
Nov 22, 2026
Merged

merlimat merged 1 commit into
mainfrom
bump-url-2.5.9

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Problem

Since RUSTSEC-2026-0592 was published, cargo deny check fails on main, so the deny job fails on every push to main and on every open pull request. The advisory reports a stack overflow in Url::origin() on nested blob: URLs, and it flags url 2.5.8. The workspace pulls in url only through testcontainers 0.28 and bollard 0.21, which are dev-dependencies of apache-pulsar for the integration tests. No shipped code uses it, but the failing check blocks every PR.

Example

The deny job on main at e6221c7 (run 45041578216):

error[vulnerability]: Stack overflow in `Url::origin()` on nested `blob:` URLs
    ├ ID: RUSTSEC-2026-0592
    ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2026-0592
    ├ Solution: Upgrade to >=2.5.9 (try `cargo update -p url`)
    ├ url v2.5.8
...
advisories FAILED, bans ok, licenses ok, sources ok

How the tests reach it: url 2.5.8 ← bollard 0.21.1 ← testcontainers 0.28.0 ← apache-pulsar (dev-dependencies).

Change

cargo update -p url --precise 2.5.9 changes two entries in Cargo.lock and nothing else:

crate from to
url 2.5.8 2.5.9
form_urlencoded 1.2.2 1.2.3

url 2.5.9 requires form_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.toml is unchanged: this upgrades url rather than adding a second ignore entry.

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, which main ignores too). This suite matters here because bollard, which builds the tests' Docker client, uses url.

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.
@merlimat
merlimat merged commit 9b4a00e into main Nov 22, 2026
11 checks passed
@merlimat
merlimat deleted the bump-url-2.5.9 branch November 22, 2026 17:05
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.

1 participant