GitHub Advisoryadvisory · Go
GHSA-qxp5-gwg8-xv66 HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
MEDIUM
Official page ↗
- Aliases
- CVE-2025-22870
- Ecosystem
- Go
- Packages
- golang.org/x/net
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
- Weaknesses
- CWE-115, CWE-20
- Reviewed
- 2025-03-12
Affected packages
• Go golang.org/x/net: < 0.36.0 → fixed in 0.36.0
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.
Related
Alias · CVE (1)
- CVE-2025-22870 Matching of hosts against proxy patterns can improperly treat an IPv6 zone ID as a hostname component. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-22870 advisory
- https://go-review.googlesource.com/q/project:net package
- https://go.dev/cl/654697 web
- https://go.dev/issue/71984 web
- https://groups.google.com/g/golang-announce/c/4t3lzH3I0eI/m/b42ImqrBAQAJ web
- https://pkg.go.dev/vuln/GO-2025-3503 web
- https://security.netapp.com/advisory/ntap-20250509-0007 web
- http://www.openwall.com/lists/oss-security/2025/03/07/2 web