CVE-2025-22870: HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
Other sources
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.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/golang.org/x/netto a version that resolves this vulnerability.Fixed in 0.36.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5-8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.4.0-29 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.29.4-14 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.14.1-6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.5.1-5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.31.0-6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.7.5-3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 17.0.7-7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.8.2-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.7.0-3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 19.0.4-6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.6.1-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.25.1-4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.45.4-12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5-11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.18.8-8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.22.7-4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.6.1-22
Event History
Frequently Asked Questions
What is the severity of CVE-2025-22870?
CVE-2025-22870 is classified as a moderate severity vulnerability due to improper handling of IPv6 zone IDs in proxy pattern matching.
How do I fix CVE-2025-22870?
To fix CVE-2025-22870, update to the latest version of the golang.org/x/net package where the issue has been addressed.
What types of systems are affected by CVE-2025-22870?
CVE-2025-22870 affects systems using the Golang library, specifically those making use of proxy settings with IPv6 addresses.
What kind of attacks can occur due to CVE-2025-22870?
Exploitation of CVE-2025-22870 could lead to sensitive information being leaked or improper access control in applications that rely on proxy configurations.
Is it safe to use the NO_PROXY environment variable with CVE-2025-22870?
Using the NO_PROXY environment variable in environments affected by CVE-2025-22870 can lead to unintended behavior, making it unsafe until the vulnerability is mitigated.