GitHub Advisoryadvisory · Go

GHSA-qxp5-gwg8-xv66 HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net

MEDIUM Published 2025-03-12 Modified 2026-04-24 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

Weakness · CWE (2)

  • CWE-115 Misinterpretation of Input weakness
  • CWE-20 Improper Input Validation weakness

References