Repository navigation
Security: refuse loopback aliases and more IPv6 ranges in the SSRF guard - #486
Merged
Merged
Conversation
Resolve dotless service names in guardSsrf and pin the result. Refuse a name that resolves to loopback, unspecified or link-local, which covers ip6-localhost, ip6-loopback and a host name mapped to 127.0.1.1. Private addresses stay allowed for Docker service names. Block 6to4 (2002::/16), local-use NAT64 (64:ff9b:1::/48) and site-local (fec0::/10) IPv6 literals and resolved addresses.
SandObserver
force-pushed
the
security/ssrf-aliases-and-ipv6-ranges
branch
from
October 18, 2026 04:35
d29d04f to
4707126
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
guardSsrfinstead of passing them unchecked, and pin the resolved address.isSelfAddress). Private addresses stay allowed for Docker service names.2002::/16), local-use NAT64 (64:ff9b:1::/48) and site-local (fec0::/10) toBLOCKED_IPV6_RE.Testing
All green, including e2e. Added tests for loopback aliases, unresolved service names, pinned service names and the three IPv6 ranges.
Changelog
Security
ip6-localhost, in admin URL tests.Checklist