• Sources: primary
  • Summary: In url 2.5.8 and earlier, Url::origin() parsed a blob: URL's path as another URL and called itself on it with no depth limit, so a 50,020-byte URL with 10,000 blob: prefixes overflowed a spawned thread's default 2 MiB stack. The overflow aborts the process and catch_unwind() cannot catch it. url 2.5.9, issued 2026-11-22 as GHSA-hrj5-67jp-wqp9, follows the URL Standard by taking the inner origin only for http, https and file schemes and returning an opaque origin otherwise.
  • Why it matters: Rust services that call Url::origin() or url::quirks::origin() on untrusted input should move to url 2.5.9, and code that relied on blob:ws:// or blob:blob: origins will now see opaque origins.
  • Background: The url crate is the Servo project's implementation of the WHATWG URL Standard and sits under most Rust HTTP clients and servers. An origin is the scheme, host and port tuple browsers use for same-origin checks, and a blob: URL inherits the origin of the URL it wraps. In Rust a stack overflow is not a panic, so it cannot be caught and ends the whole process.