4.4Medium

CVE-2025-22870HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net

Go standard library net/http; golang.org/x/net golang.org/x/net/http/httpproxy; golang.org/x/net golang.org/x/net/proxy Published: (1 year ago)

Description

Matching of hosts against proxy patterns can improperly treat an IPv6 zone ID as a hostname component. For example, when the NO_PROXY environment variable is set to "*.example.com", a request to "[::1%25.example.com]:80` will incorrectly match and not be proxied.

Weakness (CWE): CWE-115

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library net/http < 1.23.7, 1.24.0-0 – < 1.24.1
golang.org/x/net golang.org/x/net/http/httpproxy < 0.36.0
golang.org/x/net golang.org/x/net/proxy < 0.36.0

References and patches