Skip to content

chore(deps): update rust crate url to 2.5.9 [security] - #26

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/crate-url-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/crate-url-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
url workspace.dependencies minor 2.2.0 → 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

v2.5.8

Compare Source

v2.5.7

What's Changed

v.2.5.6
v.2.5.7

New Contributors

Full Changelog: servo/rust-url@v2.5.5...v2.5.7

v2.5.5

Compare Source

What's Changed

New Contributors

Full Changelog: servo/rust-url@v2.5.4...v2.5.5

v2.5.4

Compare Source

What's Changed

  • Revert "Normalize URL paths: convert /.//p, /..//p, and //p to p (#​943)" by @​valenting in #​999
  • Updates the MSRV to 1.63 required though the libc v0.2.164 dependency

Full Changelog: servo/rust-url@v2.5.3...v2.5.4

v2.5.3

Compare Source

What's Changed

New Contributors

Full Changelog: servo/rust-url@v2.5.2...v2.5.3

v2.5.2

Compare Source

What's Changed

This release reverts recent IDNA changes and the MSRV back to rust 1.56
The idna v1.0.1 crate now lives on the idna-v1x branch.

Full Changelog: servo/rust-url@v2.5.1...v2.5.2

v2.5.1

Compare Source

What's Changed
New Contributors

Full Changelog: servo/rust-url@v2.5.0...v2.5.1

v2.5.0

Compare Source

What's Changed
New Contributors

Full Changelog: servo/rust-url@v2.4.1...v2.5.0

v2.4.1

Compare Source

What's Changed
New Contributors

Full Changelog: servo/rust-url@v2.4.0...v2.4.1

v2.4.0

Compare Source

Crate version bump

  • data-url to 0.3.0
  • percent-encoding to 2.3.0
  • form_urlencoded to 1.2.0
  • idna to 0.4.0
  • url to 2.4.0

What's Changed

New Contributors

Full Changelog: servo/rust-url@v2.3.1...v2.4.0

v2.3.1

Compare Source

v2.3.0

Compare Source

v2.2.2

Compare Source

v2.2.1

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ 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 was generated by Mend Renovate. View the repository job log.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0cc2f993-c9a1-400d-867c-3e78fa976a8f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants