netliomax25-code opened PR #14747 from netliomax25-code:wasi-http-authority-userinfo to bytecodealliance:main:
request.set-authorityaccepted an RFC 3986 userinfo subcomponent such asuser@example.com: thehttpcrate'sAuthorityparses it, and the sharedparse_authorityhelper only validated the port.- Both the p2 and p3 outgoing request paths emit the authority verbatim as the
Hostheader, which guests cannot set directly becausehostis a forbidden header, and RFC 9110 definesHostasuri-host [":" port]and forbids a sender from generating userinfo within a message.An
@can only occur in an authority as the userinfo delimiter, and percent-encoded forms are already rejected by thehttpcrate, soparse_authoritynow rejects any authority containing one. Unit tests cover the rejected forms, and the p2/p3 guest test programs assertset-authorityfails for them.
netliomax25-code requested rvolosatovs for a review on PR #14747.
netliomax25-code requested wasmtime-wasi-reviewers for a review on PR #14747.
netliomax25-code requested alexcrichton for a review on PR #14747.
netliomax25-code requested wasmtime-core-reviewers for a review on PR #14747.
alexcrichton unassigned alexcrichton from PR #14747 reject userinfo in wasi-http request authorities.
alexcrichton requested pchickey for a review on PR #14747.
:thumbs_up: rvolosatovs submitted PR review.
rvolosatovs added PR #14747 reject userinfo in wasi-http request authorities to the merge queue.
:check: rvolosatovs merged PR #14747.
rvolosatovs removed PR #14747 reject userinfo in wasi-http request authorities from the merge queue.
Last updated: Oct 31 2026 at 23:03 UTC