chore(deps): update rust crate url to v2.5.9 [security] #24
No reviewers
Labels
No labels
automerge
bug
dependencies
duplicate
help wanted
invalid
lang
rust
migrations
opencode
question
security
type
documentation
type
enhancement
type
maintenance
type
refactor
vulnerability
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Personal/my-rust-lib!24
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/crate-url-vulnerability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 becomes conflicted, 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.