ResolutionNetworkGuard
SSRF deny-list for outbound DID-resolution requests whose host comes from an untrusted DID (for example did:web).
It extends PrivateNetworkGuard (loopback, any-local, link-local, site-local, multicast, IPv6 unique-local) with ranges that guard misses:
0.0.0.0/8("this network";0.0.0.0reaches localhost on Linux)100.64.0.0/10(RFC 6598 carrier-grade NAT, used for internal cloud networks)192.0.0.0/24(IETF protocol assignments),198.18.0.0/15(benchmarking)240.0.0.0/4(reserved) and the255.255.255.255broadcast addressTEST-NET documentation ranges
192.0.2.0/24,198.51.100.0/24,203.0.113.0/24and IPv6 documentation2001:db8::/32, Teredo2001::/32, and the local-use NAT6464:ff9b:1::/48fc00::/7andfe80::/10checked explicitly from the raw bytesIPv6 addresses that embed an IPv4 address (IPv4-mapped
::ffff:0:0/96, IPv4-compatible::/96, NAT6464:ff9b::/96, 6to42002::/16): the embedded IPv4 address is checked against the same list.