RUSTSEC-2026-0592: Stack overflow in `Url::origin()` on nested `blob:` URLs

オープン 初心者向け
#45 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

修正は依存関係の更新です。url クレートを 2.5.8 から少なくとも 2.5.9 に上げる必要があるため、まず Cargo.toml と lock ファイルの url エントリから始めてください。cargo update -p url を実行し、解決されたバージョンが 2.5.9 以降であること、ビルドとテストが引き続き成功することを確認してください。完了条件は、lock ファイルで url がパッチ済みバージョンに解決され、新たな警告が出ず、このプロジェクトに対してアドバイザリが適用されなくなったことです。

索引モデルが issue の本文から書いたものです。

説明

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

Details
Package url
Version 2.5.8
URL https://github.com/servo/rust-url/pull/1186
Date 2026-11-20
Patched versions >=2.5.9

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.

See advisory page for additional details.

主要言語
Rust
スター
2
フォーク
0
平均マージ
1時間 25分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stackabletech/stackable-odbc-trino のほかの issue

stackabletech/stackable-odbc-trino の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。