Skip to content

build(deps): update rust crate url to v2.5.9 [security] - #231

Merged
DanielleHuisman merged 1 commit into
mainfrom
renovate/crate-url-vulnerability
Nov 23, 2026
Merged

DanielleHuisman merged 1 commit into
mainfrom
renovate/crate-url-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
url workspace.dependencies patch 2.5.8 → 2.5.9

Stack overflow in Url::origin() on nested blob: URLs

GHSA-hrj5-67jp-wqp9 / RUSTSEC-2026-0592

More information

Details

In url 2.5.8 and earlier, Url::origin() handled a blob: URL by parsing its path as another URL and calling itself on the result. It did so regardless of the inner URL's scheme, blob included. Each blob: prefix cost one stack frame, with no limit on nesting depth. Url::parse() accepts a URL with 10,000 blob: prefixes followed by https://example.com/ (50,020 bytes in total); calling Url::origin() on it overflowed the default 2 MiB stack of a spawned thread.

A stack overflow aborts the whole process, and catch_unwind() does not catch it. One such URL crashes any program that calls Url::origin() on untrusted input. url::quirks::origin() also calls Url::origin(). For example, Servo's URL.origin DOM getter calls url::quirks::origin(), so a script on a page can trigger the overflow.

url 2.5.9 follows the URL Standard: Url::origin() takes the origin of the inner URL only when its scheme is http, https, or file, returns an opaque origin otherwise, and never calls itself. A blob: URL with another inner scheme that previously produced a tuple origin, such as blob:ws://... or blob:blob:https://..., now returns an opaque origin.

Severity

Unknown

References

This data is provided by OSV and the Rust Advisory Database (CC0 1.0).


Release Notes

servo/rust-url (url)

v2.5.9

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot enabled auto-merge (squash) November 23, 2026 09:42
@DanielleHuisman
DanielleHuisman merged commit 8789695 into main Nov 23, 2026
7 of 11 checks passed
@DanielleHuisman
DanielleHuisman deleted the renovate/crate-url-vulnerability branch November 23, 2026 09:51
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