Skip to content

deps: Update Rust crate url to v2.5.9 [SECURITY] - #93

Merged
gagantrivedi merged 1 commit into
mainfrom
renovate/crate-url-vulnerability
Dec 3, 2026
Merged

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

Conversation

@renovate

@renovate renovate Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
url 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: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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 requested a review from a team as a code owner December 3, 2026 05:18
@renovate
renovate Bot requested review from khvn26 and removed request for a team December 3, 2026 05:18
@codspeed

codspeed Bot commented Dec 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks
⏩ 15 skipped benchmarks1


Comparing renovate/crate-url-vulnerability (07340cc) with main (57e942b)2

Open in CodSpeed

Footnotes

  1. 15 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (189f4f1) during the generation of this report, so 57e942b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@gagantrivedi
gagantrivedi merged commit 266bce0 into main Dec 3, 2026
7 checks passed
@renovate
renovate Bot deleted the renovate/crate-url-vulnerability branch December 3, 2026 10:16
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