Stack overflow in Url::origin() on nested blob: URLs
What to do
Vendor fix available. Upgrade each affected package to the fixed version on its release line (url 2.5.9), redeploy, then verify what is actually installed.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
crates.io url
- Affected
- >= 0.0.0-0, < 2.5.9
- Fixed in
- 2.5.9
Sources
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record RUSTSEC-2026-0592 lists affected ranges: crates.io url >=0.0.0-0 <2.5.9 (fixed)
VerifiedObserved Structured OSV record; not marked as GitHub-reviewed.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS
- not scored
- EPSS
- No dated EPSS signal available.
Source description
As published by the source; long descriptions are shortened.
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…
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 1 · created ·
Published from osv record RUSTSEC-2026-0592
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: GHSA-hrj5-67jp-wqp9 Advisory: Stack overflow in `Url::origin()` on nested `blob:` URLs IDs: GHSA-hrj5-67jp-wqp9 Record: https://patchnext.com/advisories/rustsec-2026-0592 (revision 1, source checked 23 Nov 2026, 06:00 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: Unrated Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Vendor fix available; fixed versions by package: url 2.5.9. A vendor fix does not mean a deployment is fixed. ## Affected components - crates.io url: affected >= 0.0.0-0, < 2.5.9; fixed in 2.5.9 ## Suggested inspection (read-only) - crates.io url: check the installed version with your package manager. ## Supported action Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on url. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://osv.dev/vulnerability/RUSTSEC-2026-0592 (OSV record RUSTSEC-2026-0592 lists affected ranges: crates.io url >=0.0.0-0 <2.5.9 (fixed)) Commands are suggestions: review each one before running it.
Loading voting…