CVE-2025-22870
JSON

4.4medium

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

Severity
4.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.43% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GHSA-qxp5-gwg8-xv66GO-2025-3503

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

Product or packageVersionsReported by
net/httpbefore 1.23.7, from 1.24.0-0 before 1.24.1CVE List
golang.org/x/net/http/httpproxybefore 0.36.0CVE List
golang.org/x/net/proxybefore 0.36.0CVE List
golang.org/x/net (Go)before 0.36.0GitHub Advisory Database, Go Vulnerability Database
stdlib (Go)before 1.23.7, from 1.24.0-0 before 1.24.1Go Vulnerability Database

All scores

CISA-ADP4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
GitHub4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

Classification

CWE-20CWE-115

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

La coincidencia de hosts con patrones de proxy puede tratar incorrectamente un ID de zona IPv6 como un componente de nombre de host. Por ejemplo, si la variable de entorno NO_PROXY se establece en "*.example.com", una solicitud a "[::1%25.example.com]:80` coincidirá incorrectamente y no se procesará mediante proxy.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-22870 changed 2026-04-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-qxp5-gwg8-xv66 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3503 changed 2026-04-16CC-BY-4.0
NVDCVE-2025-22870 changed 2026-06-17Public domain