Skip to content

fix(webhooks): strip trailing dot from hostname to block root-dotted internal hosts - #68

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
nivokvo:fix/url-guard-root-dot
Jul 30, 2026
Merged

fix(webhooks): strip trailing dot from hostname to block root-dotted internal hosts#68
ralyodio merged 1 commit into
moshcoder:masterfrom
nivokvo:fix/url-guard-root-dot

Conversation

@nivokvo

@nivokvo nivokvo commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Root-dotted FQDNs like localhost. and metadata.google.internal. bypass the internal-host check because the trailing dot causes exact-match and endsWith checks to fail. Strip it before checking.\n\nFixes #60.

@ralyodio
ralyodio merged commit 6bf5ead into moshcoder:master Jul 30, 2026
2 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