RUSTSEC-2026-0592: Stack overflow in `Url::origin()` on nested `blob:` URLs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 62/100
調査の方向性
脆弱性のあるクレートは url 2.5.8 です。まず Cargo.toml と Cargo.lock を見て、url がどこで固定または解決されているかを確認してください。cargo update -p url を実行する(または要件を編集する)と 2.5.9 以降に上がります。その後 cargo test を実行し、ビルドが引き続き通ることを確認してください。lockfile で url が少なくとも 2.5.9 に解決され、テストスイートがすべて成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Stack overflow in
Url::origin()on nestedblob: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
- スター
- 1.1k
- フォーク
- 57
- 平均マージ
- 17時間 39分
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cot-rs/cot のほかの issue
-
Add changelog pageオープンA-docs
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
A-docs
難易度 2/5 半日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
A-docs
難易度 2/5 半日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Add Routing docs再び着手できるかも @ElijahAhianyo が 43 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug C-cli good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
code-quality parser
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
eventflux-io/eventflux#218 ·
メンテナーはふだん 1 日以内に返信
-
StartSso docs say an option requires the built-in AuthnRequest renderer, which is now the only oneオープンdocumentation needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信