Skip to content

fix: request target host confusion#512

Merged
brendanjryan merged 1 commit into
wevm:mainfrom
stevencartavia:fix-request-target-host-confusion
Jun 7, 2026
Merged

fix: request target host confusion#512
brendanjryan merged 1 commit into
wevm:mainfrom
stevencartavia:fix-request-target-host-confusion

Conversation

@stevencartavia

Copy link
Copy Markdown
Contributor

Fixed the Node adapter so a request target's authority can no longer override the host from the Host header. Protocol-relative (//evil.com/x) and similar targets previously hijacked the host and poisoned the auto-detected realm.

Added conformance tests, including a raw-socket harness.

@pkg-pr-new

pkg-pr-new Bot commented Jun 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@512

commit: b2dd171

@brendanjryan brendanjryan merged commit 1c286cd into wevm:main Jun 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants