Skip to content

fix(webhooks): localhost callbacks on Node 18 - #4

Merged
NHTanvir merged 1 commit into
masterfrom
fix/node18-localhost-delivery
Nov 18, 2026
Merged

NHTanvir merged 1 commit into
masterfrom
fix/node18-localhost-delivery

Conversation

@NHTanvir

Copy link
Copy Markdown
Owner

Closes #3.

postWebhook resolves the callback host with all addresses and filters out non-public ones (unless private networks are allowed). When Node asks for a single address, the first one is now an IPv4 address if there is one, which is what Node did before v17. On Node 18, localhost resolved to ::1 first and deliveries to a receiver on 127.0.0.1 were refused.

Verified locally on Node 18.20.8 and Node 24: all 135 tests pass, and demo --once passes on both.

…calhost works on Node 18

Node 18 resolves localhost to ::1 first and has no happy-eyeballs fallback, so deliveries to a receiver bound to 127.0.0.1 were refused. The choice is still made only among addresses that passed the SSRF filter. dist/ rebuilt.

Closes #3
@NHTanvir NHTanvir self-assigned this Nov 18, 2026
@NHTanvir
NHTanvir merged commit 7cf5055 into master Nov 18, 2026
4 checks passed
@NHTanvir
NHTanvir deleted the fix/node18-localhost-delivery branch November 18, 2026 05:40
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.

Webhook delivery to a localhost callback fails on Node 18

1 participant