chore(deps): update rust crate url to v2.5.9 [security] #24

Merged
martin merged 1 commit from renovate/crate-url-vulnerability into main 2026-11-23 06:58:31 +00:00
Member

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 has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [url](https://github.com/servo/rust-url) | dependencies | patch | `2.5.8` → `2.5.9` | --- ### Stack overflow in `Url::origin()` on nested `blob:` URLs [GHSA-hrj5-67jp-wqp9](https://github.com/advisories/GHSA-hrj5-67jp-wqp9) / [RUSTSEC-2026-0592](https://rustsec.org/advisories/RUSTSEC-2026-0592.html) <details> <summary>More information</summary> #### 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 - [https://crates.io/crates/url](https://crates.io/crates/url) - [https://rustsec.org/advisories/RUSTSEC-2026-0592.html](https://rustsec.org/advisories/RUSTSEC-2026-0592.html) - [https://github.com/servo/rust-url/pull/1186](https://github.com/servo/rust-url/pull/1186) This data is provided by [OSV](https://osv.dev/vulnerability/RUSTSEC-2026-0592) and the [Rust Advisory Database](https://github.com/RustSec/advisory-db) ([CC0 1.0](https://github.com/rustsec/advisory-db/blob/main/LICENSE.txt)). </details> --- ### Release Notes <details> <summary>servo/rust-url (url)</summary> ### [`v2.5.9`](https://github.com/servo/rust-url/compare/v2.5.8...v2.5.9) [Compare Source](https://github.com/servo/rust-url/compare/v2.5.8...v2.5.9) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODEuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJ2dWxuZXJhYmlsaXR5Il19-->
chore(deps): update rust crate url to v2.5.9 [security]
All checks were successful
ci/woodpecker/pr/pr-review Pipeline was successful
ci/woodpecker/pr/global-rust-verify Pipeline was successful
2a7df8e2a1
martin merged commit 95d819baed into main 2026-11-23 06:58:31 +00:00
martin deleted branch renovate/crate-url-vulnerability 2026-11-23 06:58:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Personal/my-rust-lib!24
No description provided.