You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IPNetwork.Contains handles IPv4-mapped addresses inconsistently for IPv6 networks #131861
IPNetwork.Contains uses the queried address to choose between IPv4 and IPv6 comparison logic. When an IPv4-mapped IPv6 address is queried against an IPv6 network, it can incorrectly use the IPv4 comparison path.
Expected behavior:
IPv4 networks continue to accept equivalent IPv4-mapped addresses.
IPv6 networks use IPv6 prefix semantics for all IPv6 addresses, including IPv4-mapped addresses.
Example:
Activity
dotnet-policy-service commentedon Aug 5, 2026
Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
[release/10.0] Fix IPNetwork.Contains for mapped IPv4 addresses (#137204