CVE-2026-70485: Python Ipaddress Is Global Ssrf Bypass

Relying on `ipaddress.ip_address(...).is_global` alone for SSRF validation is unsafe. IPv6 addresses embedding private IPv4 addresses (such as NAT64, 6to4, Teredo, or IPv4-mapped IPv6) may return True for `is_global`. Inspect embedded IPv4 addresses before validating.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-70485-python-ipaddress-is-global-ssrf-bypass --engine opengrep

Description

Relying on `ipaddress.ip_address(...).is_global` alone for SSRF validation is unsafe. IPv6 addresses embedding private IPv4 addresses (such as NAT64, 6to4, Teredo, or IPv4-mapped IPv6) may return True for `is_global`. Inspect embedded IPv4 addresses before validating.