CVE-2026-28352: Python Ipaddress Is Private Bypass

Relying solely on the `.is_private` attribute of an `ipaddress` object is insufficient to block all internal network ranges. It neglects link-local addresses (e.g., 169.254.169.254 used for cloud metadata), loopback addresses, and reserved networks, potentially allowing SSRF bypasses. You must also verify `.is_loopback`, `.is_link_local`, and `.is_reserved`

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-28352-python-ipaddress-is-private-bypass --engine opengrep

Description

Relying solely on the `.is_private` attribute of an `ipaddress` object is insufficient to block all internal network ranges. It neglects link-local addresses (e.g., 169.254.169.254 used for cloud metadata), loopback addresses, and reserved networks, potentially allowing SSRF bypasses. You must also verify `.is_loopback`, `.is_link_local`, and `.is_reserved`