CVE-2025-22870

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

State
Published
Severity
4.4 Medium
Published
Mar 12, 2025
Updated
Apr 16, 2026
Reserved
Jan 8, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.4 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:LCISA-ADP

Weaknesses

Affected Products

ProductVersions
net/httpGo standard library
  • before 1.23.7Affected
  • 1.24.0-0 to before 1.24.1Affected
golang.org/x/net/http/httpproxygolang.org/x/net
  • before 0.36.0Affected
golang.org/x/net/proxygolang.org/x/net
  • before 0.36.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.