CVE-2025-22870
MEDIUM4.4EPSS 0.02%HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
Published: 3/12/2025Modified: 5/5/2026
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 (6)
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Debian/golang-1.24from 0, < 1.24.1-1
- Go/golang.org/x/netfrom 0, < 0.36.0
- Go/golang.org/x/netfrom 0, < 0.36.0
- Go/stdlibfrom 0, < 1.23.7, >= 1.24.0-0, < 1.24.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-22870
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-22870
- PATCHhttps://go-review.googlesource.com/q/project:net
- WEBhttps://go.dev/cl/654697
- WEBhttps://go.dev/issue/71984
- WEBhttps://groups.google.com/g/golang-announce/c/4t3lzH3I0eI/m/b42ImqrBAQAJ
- WEBhttps://pkg.go.dev/vuln/GO-2025-3503
- WEBhttps://security.netapp.com/advisory/ntap-20250509-0007
- WEBhttp://www.openwall.com/lists/oss-security/2025/03/07/2