Stream: git-wasmtime

Topic: wasmtime / PR #14123 fix(wasi-http): validate ports in p2...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 02:22):

SashaMIT opened PR #14123 from SashaMIT:fix/wasi-http-p2-authority-port-validation to bytecodealliance:main:

Summary

http::uri::Authority accepts authorities such as example.com: and example.com:abc. p3 already rejects those (#13739 class). p2 did not. With a bad authority, default_send_request sees no numeric port and appends the scheme default, producing broken connect targets such as example.com::443 / example.com:abc:443.

Threat model: guest-controlled wasi-http authority string on the host outbound connect / TLS path. Fail closed before host I/O, matching p3.

Test plan

Made with Cursor

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 02:22):

SashaMIT requested wasmtime-wasi-reviewers for a review on PR #14123.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 02:22):

SashaMIT requested dicej for a review on PR #14123.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 02:28):

SashaMIT updated PR #14123.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 02:28):

SashaMIT commented on PR #14123:

Fixed Rustfmt (trailing blank line after moving the authority tests).

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 13:44):

:thumbs_up: dicej submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 13:44):

dicej added PR #14123 fix(wasi-http): validate ports in p2 set_authority like p3 to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 14:10):

:check: dicej merged PR #14123.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 14:10):

dicej removed PR #14123 fix(wasi-http): validate ports in p2 set_authority like p3 from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 12 2026 at 16:29):

SashaMIT commented on PR #14123:

Glad it landed, thanks for the review.


Last updated: Aug 30 2026 at 10:08 UTC