Repository navigation
chore(deps): update rust crate url to v2.5.9 [security] - #225
Merged
Merged
Conversation
Code review
Updates the locked Walkthrough (1)
Reviewed Tip Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR contains the following updates:
2.5.8→2.5.9Stack overflow in
Url::origin()on nestedblob:URLsGHSA-hrj5-67jp-wqp9 / RUSTSEC-2026-0592
More information
Details
In
url2.5.8 and earlier,Url::origin()handled ablob:URL by parsing its path as another URL and calling itself on the result. It did so regardless of the inner URL's scheme,blobincluded. Eachblob:prefix cost one stack frame, with no limit on nesting depth.Url::parse()accepts a URL with 10,000blob:prefixes followed byhttps://example.com/(50,020 bytes in total); callingUrl::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 callsUrl::origin()on untrusted input.url::quirks::origin()also callsUrl::origin(). For example, Servo'sURL.originDOM getter callsurl::quirks::origin(), so a script on a page can trigger the overflow.url2.5.9 follows the URL Standard:Url::origin()takes the origin of the inner URL only when its scheme ishttp,https, orfile, returns an opaque origin otherwise, and never calls itself. Ablob:URL with another inner scheme that previously produced a tuple origin, such asblob:ws://...orblob: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.9Compare Source
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate CLI.