Skip to content
FlawDB
Sign in

GHSA-hrj5-67jp-wqp9

UNSCORED

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

Also known as RUSTSEC-2026-0592

Mitigation

  • Upgrade url to 2.5.9 or later.

Who should check

  • Projects that depend on crates.io package url (>= 0.0.0-0, < 2.5.9)

Vulnerability facts

Affected
url >= 0.0.0-0, < 2.5.9
Fixed in
2.5.9
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io url>= 0.0.0-0, < 2.5.92.5.9osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by GHSA-hrj5-67jp-wqp9. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/GHSA-hrj5-67jp-wqp9.md
Affected: url >= 0.0.0-0, < 2.5.9
Fixed in: 2.5.9

Steps:
1. Search this machine and project for url (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is GHSA-hrj5-67jp-wqp9 being exploited?

There is no confirmed exploitation: GHSA-hrj5-67jp-wqp9 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is GHSA-hrj5-67jp-wqp9?

It has no CVSS score yet. Unknown.

Which versions are affected by GHSA-hrj5-67jp-wqp9?

url >= 0.0.0-0, < 2.5.9.

Is there a fix for GHSA-hrj5-67jp-wqp9?

Yes. Fixed in 2.5.9. Upgrade url to 2.5.9 or later.

How do I check if I'm affected by GHSA-hrj5-67jp-wqp9?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors