GO-2025-3503

HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net

At a glance

Published
Updated
CVE
CVE-2025-22870
Aliases
GHSA-qxp5-gwg8-xv66

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.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.23.7, introduced 1.24.0-0, fixed 1.24.1
Go · golang.org/x/netintroduced 0, fixed 0.36.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database