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

> Attackers can bypass HTTP proxy restrictions by using IPv6 zone IDs in hostnames, potentially exposing internal services or bypassing security controls.

- **Severity:** Medium 4.4 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Mar 2025
- **Updated:** 16 Apr 2026
- **Also known as:** AZL-58380, AZL-58386, AZL-58392, AZL-58396, AZL-58402, AZL-58404, AZL-58413, AZL-58416, AZL-58419, AZL-58422, AZL-58438, AZL-58440, AZL-58443, AZL-58446, AZL-58452, AZL-58455, AZL-58458, AZL-58469, AZL-58472, AZL-79030, AZL-98829, BELL-CVE-2025-22870, CLEANSTART-2026-KC86970, CLEANSTART-2026-QA69007, CLEANSTART-2026-QM27713, CLEANSTART-2026-RS05320, CLEANSTART-2026-VS09548, CLEANSTART-2026-ZR63822, DEBIAN-CVE-2025-22870, ECHO-6d3f-307e-c4cf, GHSA-qxp5-gwg8-xv66, GO-2025-3503, MINI-237q-3566-gfxm, MINI-284c-pprw-xv23, MINI-2cjc-x272-3h42, MINI-2hvq-f6v6-x536, MINI-2prw-8935-r365, MINI-2wr9-2gg5-jrvw, MINI-33gx-pwpm-2pxq, MINI-343r-wfww-24qf, MINI-3532-87rf-3wv3, MINI-382r-fx75-g5c8, MINI-398v-fcg8-5q7h, MINI-3c7g-qv2h-835h, MINI-3cr8-pm43-mj5g, MINI-3hr3-w3wx-8h4v, MINI-3q3c-v2rc-p8f9, MINI-3wwj-5pmw-6wv9, MINI-46gw-vqpx-g2hw, MINI-4cx5-vvw9-7mfv, MINI-4ffw-36jx-pfrm, MINI-4h4m-c3f8-x6g8, MINI-4hgp-jh57-692h, MINI-4pvq-5626-98wf, MINI-4qj2-p73q-cwmm, MINI-4xwr-c9x7-cmg8, MINI-52w7-rpcp-773r, MINI-534p-2j54-6j5f, MINI-544x-v5rx-4jw9, MINI-55xf-jc2j-mvhf, MINI-5f8f-pxr7-f44p, MINI-5fq9-gqj5-mhch, MINI-5g2j-rw8p-fg4v, MINI-5j4q-xccp-5cmg, MINI-5mf3-v5q6-wv25, MINI-5p39-jrm2-mm5j, MINI-5v8x-qm32-mwxx, MINI-657m-g322-f279, MINI-689h-749g-xmwh, MINI-6fc4-q9w2-5vp3, MINI-6fp6-jxp8-cf5w, MINI-6gx9-3q3r-4fj8, MINI-6gxh-2hx6-f25g, MINI-6jjg-rhh5-jjcq, MINI-6m6r-38fr-rrmj, MINI-6mq6-ch34-78cq, MINI-7m4r-vg3h-wxw4, MINI-7p2h-c68w-69c8, MINI-7v3m-p6fv-x7x3, MINI-7vg9-p6fj-xvgp, MINI-834f-87jr-2cg2, MINI-8g8w-h2gx-36mp, MINI-8gpw-v73r-fjhv, MINI-8v93-h7wp-mh9p, MINI-92qh-vffw-q25v, MINI-92r7-j2jm-q6x7, MINI-995c-952q-q27v, MINI-998h-vm43-xjpq, MINI-9f9w-2w7p-6gf6, MINI-9g5r-vw69-f7h4, MINI-9p59-5mjw-2g7x, MINI-9pg5-c4p2-fw2f, MINI-9qhx-w7q2-pxgv, MINI-c4wc-h9mx-jc8p, MINI-c5gg-92wc-fw9p, MINI-c5hv-3jxv-3g73, MINI-cfp3-4984-wrr2, MINI-cm53-2gxg-r9g5, MINI-cvwx-95x3-86vm, MINI-f32h-6vcj-w275, MINI-f4vf-vvmq-pwwj, MINI-f5rm-9649-9gvf, MINI-f78h-v664-2qr2, MINI-fcgq-cxhv-ff8g, MINI-fcx8-85c9-fcrq, MINI-fpqc-qq3j-7f6q, MINI-gjf8-mv8x-x6v4, MINI-gpmq-g2hj-6295, MINI-h2qx-cjj5-774x, MINI-h2r9-jw6v-pmh2, MINI-h52j-9rf5-h2gj, MINI-hrww-hr8p-x3h8, MINI-hvj9-5r6j-gwcp, MINI-hxf5-982m-pcrx, MINI-j5r4-5gj8-7x6r, MINI-j75q-vvf2-x25c, MINI-j7fg-872p-9hxw, MINI-jq32-q5p9-wm34, MINI-jr9v-mc5x-v2r6, MINI-jr9x-h85v-vcxc, MINI-jxpv-jjj3-hx6c, MINI-m266-h5m8-vchw, MINI-m5ff-fj7m-g2xg, MINI-m5r8-4p74-r4vm, MINI-m886-x8jj-7wq2, MINI-mc5f-57ch-j9c6, MINI-mcv5-ggjp-rhrf, MINI-mfwf-h495-68g8, MINI-mrg8-vpr6-p626, MINI-p238-mwgv-wcph, MINI-p567-w578-8gw3, MINI-p927-9vx6-jwxc, MINI-p9m4-8x3r-xg87, MINI-pgw3-pgx4-gh5q, MINI-ppw2-fj6c-xwx9, MINI-prrg-mrpv-hq44, MINI-pw67-9ppq-35vm, MINI-pwh2-735g-mmwj, MINI-pxmm-7xw8-wv65, MINI-q3mx-43f4-p9jc, MINI-q5gg-5w5h-23q7, MINI-qjxp-j772-hwm4, MINI-qpj9-jjr4-rv3j, MINI-r63p-fxm7-fv5j, MINI-r6ff-qmfx-775r, MINI-rfvc-xwgq-j6qj, MINI-rg5f-5vc2-rg4r, MINI-rhg2-563g-2xc2, MINI-rjm7-594v-47jv, MINI-rpfg-vjph-9fr8, MINI-rx36-f8p2-8789, MINI-v227-m6hm-gh63, MINI-v7fv-3gfj-hv64, MINI-v7gc-f8gm-4r32, MINI-vfhv-568f-fp97, MINI-vhjh-v25p-9r7v, MINI-vm4h-9wr9-wgg7, MINI-vpjq-wpq4-cmf3, MINI-vprj-5mfw-xf95, MINI-vqr3-56f8-j7r4, MINI-w37c-p59g-xr64, MINI-w62m-mqvh-vr2p, MINI-w67c-6pww-9x5f, MINI-w73q-w5rf-q4v2, MINI-w8jm-q5h5-76f3, MINI-whcc-r7x9-fgpj, MINI-wjg8-c2w2-ffjc, MINI-wm36-vmf6-r6hc, MINI-wmxr-4963-25c2, MINI-wvg6-w26r-v3p8, MINI-wxg6-922p-8vqq, MINI-x2jf-3cr9-x6cx, MINI-x666-7r32-rqv7, MINI-x6m6-946c-ghm9, MINI-x833-9xmh-2vrm, MINI-x8j5-7w5j-hvxp, MINI-xj39-xv7c-wpjj, MINI-xjmx-hccm-vvxm, MINI-xqxr-rj3c-p58w, MINI-xxf3-p4c3-95p9, MINI-xxqw-m346-xx87, MINI-xxww-3h94-8r43, OESA-2025-1427, ROOT-APP-GOBINARY-CVE-2025-22870, SUSE-SU-2025:0802-1, SUSE-SU-2025:0803-1, SUSE-SU-2025:0866-1, SUSE-SU-2025:0873-1, SUSE-SU-2025:1007-1, SUSE-SU-2025:1055-1, UBUNTU-CVE-2025-22870, openSUSE-SU-2025:14855-1, openSUSE-SU-2025:14856-1, openSUSE-SU-2025:14863-1, openSUSE-SU-2025:14867-1, openSUSE-SU-2025:14906-1, openSUSE-SU-2025:15041-1, openSUSE-SU-2025:15178-1

## What is CVE-2025-22870?

CVE-2025-22870 is a medium-severity vulnerability in golang.org/x/net/http/httpproxy, published on 12 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-115 (Misinterpretation of Input)

## Which versions are affected by CVE-2025-22870?

4 open source packages ship an affected version, including golang.org/x/net and stdlib.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `golang.org/x/net` | Go | All versions | 0.36.0 |
| `golang.org/x/net` | Go | All versions | 0.36.0 |
| `golang.org/x/net` | Go | All versions | 0.36.0 |
| `stdlib` | Go | All versions | 1.23.7, 1.24.1 |
| `helm` | SUSE:Linux Enterprise Micro 5.5 | All versions | 3.17.2-150000.1.44.1 |
| `skopeo` | SUSE:Linux Enterprise Micro 5.5 | All versions | 1.14.4-150300.11.22.1 |
| `skopeo` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 1.14.4-150300.11.22.1 |
| `helm` | SUSE:Linux Enterprise Module for Containers 15 SP6 | All versions | 3.17.2-150000.1.44.1 |
| `go1.23` | SUSE:Linux Enterprise Module for Development Tools 15 SP6 | All versions | 1.23.7-150000.1.24.1 |
| `go1.24` | SUSE:Linux Enterprise Module for Development Tools 15 SP6 | All versions | 1.24.1-150000.1.12.1 |
| `helm` | SUSE:Linux Enterprise Module for Package Hub 15 SP6 | All versions | 3.17.2-150000.1.44.1 |
| `amazon-ssm-agent` | SUSE:Linux Enterprise Module for Public Cloud 12 | All versions | 3.3.1611.0-4.39.1 |
| `amazon-ssm-agent` | SUSE:Linux Enterprise Module for Public Cloud 15 SP3 | All versions | 3.3.1611.0-150000.5.23.1 |
| `amazon-ssm-agent` | SUSE:Linux Enterprise Module for Public Cloud 15 SP4 | All versions | 3.3.1611.0-150000.5.23.1 |
| `amazon-ssm-agent` | SUSE:Linux Enterprise Module for Public Cloud 15 SP5 | All versions | 3.3.1611.0-150000.5.23.1 |
| `amazon-ssm-agent` | SUSE:Linux Enterprise Module for Public Cloud 15 SP6 | All versions | 3.3.1611.0-150000.5.23.1 |
| `amazon-ssm-agent` | openSUSE:Leap 15.6 | All versions | 3.3.1611.0-150000.5.23.1 |
| `go1.23` | openSUSE:Leap 15.6 | All versions | 1.23.7-150000.1.24.1 |
| `go1.24` | openSUSE:Leap 15.6 | All versions | 1.24.1-150000.1.12.1 |
| `helm` | openSUSE:Leap 15.6 | All versions | 3.17.2-150000.1.44.1 |
| `skopeo` | openSUSE:Leap 15.6 | All versions | 1.14.4-150300.11.22.1 |
| `amazon-ssm-agent` | openSUSE:Tumbleweed | All versions | 3.3.1957.0-2.1 |
| `go1.23` | openSUSE:Tumbleweed | All versions | 1.23.7-1.1 |
| `go1.24` | openSUSE:Tumbleweed | All versions | 1.24.1-1.1 |
| `golang-github-prometheus-alertmanager` | openSUSE:Tumbleweed | All versions | 0.28.1-2.1 |
| `golang-github-prometheus-node_exporter` | openSUSE:Tumbleweed | All versions | 1.9.1-2.1 |
| `helm` | openSUSE:Tumbleweed | All versions | 3.17.2-1.1 |
| `teleport` | openSUSE:Tumbleweed | All versions | 17.3.3-1.1 |

## How do I fix CVE-2025-22870?

Upgrade golang.org/x/net to 0.36.0 or later.

## Is CVE-2025-22870 being exploited?

There is no known exploitation of CVE-2025-22870 in the wild and no public exploit code.

Public exploit code:

- Proof-of-concept for CVE-2025-22870 demonstrating HTTP proxy bypass in vulnerable versions (<0.36.0) of golang.org/x/net/http/httpproxy. Exploits improper IPv6 zone ID parsing to evade NO_PROXY restrictions, enabling proxy bypass and potential SSRF under misconfigured environments. (github_poc): https://github.com/JoshuaProvoste/CVE-2025-22870

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-22870 and fix it if it is affected.

What it is: CVE-2025-22870 is a medium-severity vulnerability in golang.org/x/net/http/httpproxy, published on 12 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-22870 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang.org/x/net (Go): affected all versions; fixed in 0.36.0
- golang.org/x/net (Go): affected all versions; fixed in 0.36.0
- golang.org/x/net (Go): affected all versions; fixed in 0.36.0
- stdlib (Go): affected all versions; fixed in 1.23.7, 1.24.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-22870/ (Markdown: https://insights.sbomify.com/CVE-2025-22870/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-22870
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-22870
- OSV: https://osv.dev/vulnerability/CVE-2025-22870

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-22870/
Summaries are generated and may contain mistakes; the official description above is the record.
