CVE-2025-22870: HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
Matching of hosts against proxy patterns can improperly treat an IPv6 zone ID as a hostname component. For example, when the NOPROXY environment variable is set to ".example.com", a request to "[::1%25.example.com]:80 will incorrectly match and not be proxied.
Published Mar 12, 2025 · Updated Apr 24, 2026
Affected packages
golang.org/x/net
- Ecosystem
- Go
- Affected
- < 0.36.0
- Fixed in
- 0.36.0
- Check
go list -m golang.org/x/net
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-22870
- https://go.dev/cl/654697
- https://go.dev/issue/71984
- https://pkg.go.dev/vuln/GO-2025-3503
- https://security.netapp.com/advisory/ntap-20250509-0007
- https://groups.google.com/g/golang-announce/c/4t3lzH3I0eI/m/b42ImqrBAQAJ
- https://github.com/advisories/GHSA-qxp5-gwg8-xv66
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
