RUSTSEC-2026-0592: Stack overflow in `Url::origin()` on nested `blob:` URLs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先在 workspace 根目录运行 cargo tree -i url,查看 url 是直接依赖还是被间接引入,然后在相关的 Cargo.toml(workspace 根目录或成员 crate)中找到版本约束。将其提升到 >=2.5.9(或运行 cargo update -p url,如果它只存在于 Cargo.lock 中),然后重新构建。完成意味着 cargo tree -i url 显示 2.5.9 或更高版本,并且 workspace 仍能干净地构建和测试;检查是否有任何代码调用 url::quirks::origin() 或依赖 blob: URL 返回元组 origin,因为这些结果会发生变化。
由索引模型根据 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
- 星标
- 4.8k
- 派生
- 222
- 平均合并
- 1 天 16 小时
- 30 天内合并 PR
- 60
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperlight-dev/hyperlight 的其他 Issue
-
S-needs-triage
难度 2/5 1-3 小时 新手友好度 64/100
hyperlight-dev/hyperlight#2073 ·
维护者通常 1 天内回复
-
C-bug S-needs-triage
难度 2/5 1-3 小时 新手友好度 82/100
hyperlight-dev/hyperlight#2056 ·
维护者通常 1 天内回复
-
A-docs C-bug S-needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
hyperlight-dev/hyperlight#2027 ·
维护者通常 1 天内回复
-
S-needs-triage
难度 2/5 1-3 小时 新手友好度 65/100
hyperlight-dev/hyperlight#1970 ·
维护者通常 1 天内回复
-
S-needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
hyperlight-dev/hyperlight#1940 ·
维护者通常 1 天内回复
查看 hyperlight-dev/hyperlight 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
-
tests
难度 2/5 1-3 小时 新手友好度 70/100
vfarcic/dot-agent-deck#2512 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
pop-os/cosmic-applets#1641 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
pop-os/cosmic-store#650 ·