Skip to content

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

Merged
renovate-appwrite[bot] merged 1 commit into
mainfrom
renovate/crate-url-vulnerability
Nov 22, 2026
Merged

renovate-appwrite[bot] merged 1 commit into
mainfrom
renovate/crate-url-vulnerability

Conversation

@renovate-appwrite

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
url workspace.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 is behind base branch, 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.

@renovate-appwrite renovate-appwrite Bot added dependencies Relating to project dependencies security labels Nov 22, 2026
@appwrite

appwrite Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
2087443 Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

The repository call sites use URL parsing and path APIs, not the changed origin behavior; Cargo-based fetch, build, and tests could not run because Cargo is unavailable in the sandbox.

Updates the locked url crate from 2.5.8 to 2.5.9 and form_urlencoded from 1.2.2 to 1.2.3. This incorporates the upstream URL-origin fix and associated patch-level changes.

Walkthrough (1)
File Change
Cargo.lock Updates the locked versions and checksums for url and form_urlencoded.

Reviewed 2087443

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@renovate-appwrite
renovate-appwrite Bot merged commit c9e88c7 into main Nov 22, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Relating to project dependencies security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants