{"answers":{"affected":"4 open source packages ship an affected version, including golang.org/x/net and stdlib.","exploited":"There is no known exploitation of CVE-2025-22870 in the wild and no public exploit code.","fix":"Upgrade golang.org/x/net to 0.36.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-22870 and fix it if it is affected.\n\nWhat 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.\nExploitation: There is no known exploitation of CVE-2025-22870 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang.org/x/net (Go): affected all versions; fixed in 0.36.0\n- golang.org/x/net (Go): affected all versions; fixed in 0.36.0\n- golang.org/x/net (Go): affected all versions; fixed in 0.36.0\n- stdlib (Go): affected all versions; fixed in 1.23.7, 1.24.1\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-22870/ (Markdown: https://insights.sbomify.com/CVE-2025-22870/index.md)","id":"CVE-2025-22870","markdown":"https://insights.sbomify.com/CVE-2025-22870/index.md","name":"CVE-2025-22870","record":{"aliases":["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"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Go HTTP proxy library","requires_auth":"low_privilege","summary":"Attackers can bypass HTTP proxy restrictions by using IPv6 zone IDs in hostnames, potentially exposing internal services or bypassing security controls.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-115","name":"Misinterpretation of Input"}],"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.","ecosystems":["Go","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Containers 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP3","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-06-08","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-06-08T00:40:42Z","kind":"github_poc","ref":"https://github.com/JoshuaProvoste/CVE-2025-22870","stars":2,"title":"Proof-of-concept for CVE-2025-22870 demonstrating HTTP proxy bypass in vulnerable versions (\u003c0.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."}],"tier":"poc_unverified"},"has_fix":true,"headline":"HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net","id":"CVE-2025-22870","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":28,"n_references":4,"next":{"headline":"Request smuggling due to acceptance of invalid chunked data in net/http","id":"CVE-2025-22871"},"packages":[{"ecosystem":"Go","fixed":["0.36.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/net","purl":null,"source":"GHSA-qxp5-gwg8-xv66"},{"ecosystem":"Go","fixed":["0.36.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/net","purl":"pkg:golang/golang.org/x/net","source":"GHSA-qxp5-gwg8-xv66"},{"ecosystem":"Go","fixed":["0.36.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/net","purl":"pkg:golang/golang.org/x/net","source":"GO-2025-3503"},{"ecosystem":"Go","fixed":["1.23.7","1.24.1"],"introduced":["0","1.24.0-0"],"last_affected":[],"package":"stdlib","purl":"pkg:golang/stdlib","source":"GO-2025-3503"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["3.17.2-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/suse/helm\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:1007-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.14.4-150300.11.22.1"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/suse/skopeo\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:1055-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["1.14.4-150300.11.22.1"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/suse/skopeo\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:1055-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP6","fixed":["3.17.2-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/suse/helm\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP6","source":"SUSE-SU-2025:1007-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["1.23.7-150000.1.24.1"],"introduced":["0"],"last_affected":[],"package":"go1.23","purl":"pkg:rpm/suse/go1.23\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2025:0803-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["1.24.1-150000.1.12.1"],"introduced":["0"],"last_affected":[],"package":"go1.24","purl":"pkg:rpm/suse/go1.24\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2025:0802-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["3.17.2-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/suse/helm\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2025:1007-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["3.3.1611.0-4.39.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2025:0866-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["3.3.1611.0-150000.5.23.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-SU-2025:0873-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["3.3.1611.0-150000.5.23.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2025:0873-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP5","fixed":["3.3.1611.0-150000.5.23.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP5","source":"SUSE-SU-2025:0873-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP6","fixed":["3.3.1611.0-150000.5.23.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP6","source":"SUSE-SU-2025:0873-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.3.1611.0-150000.5.23.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/opensuse/amazon-ssm-agent\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0873-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.23.7-150000.1.24.1"],"introduced":["0"],"last_affected":[],"package":"go1.23","purl":"pkg:rpm/opensuse/go1.23\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0803-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.24.1-150000.1.12.1"],"introduced":["0"],"last_affected":[],"package":"go1.24","purl":"pkg:rpm/opensuse/go1.24\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0802-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.17.2-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/opensuse/helm\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:1007-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.14.4-150300.11.22.1"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/opensuse/skopeo\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:1055-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.3.1957.0-2.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/opensuse/amazon-ssm-agent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14867-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.23.7-1.1"],"introduced":["0"],"last_affected":[],"package":"go1.23","purl":"pkg:rpm/opensuse/go1.23\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14855-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.24.1-1.1"],"introduced":["0"],"last_affected":[],"package":"go1.24","purl":"pkg:rpm/opensuse/go1.24\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14856-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.28.1-2.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-alertmanager","purl":"pkg:rpm/opensuse/golang-github-prometheus-alertmanager\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15178-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.9.1-2.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-node_exporter","purl":"pkg:rpm/opensuse/golang-github-prometheus-node_exporter\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15041-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.17.2-1.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/opensuse/helm\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14906-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["17.3.3-1.1"],"introduced":["0"],"last_affected":[],"package":"teleport","purl":"pkg:rpm/opensuse/teleport\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14863-1"}],"prev":{"headline":"Potential denial of service in golang.org/x/crypto","id":"CVE-2025-22869"},"products":["golang.org/x/net/http/httpproxy","golang.org/x/net/proxy","net/http"],"published":"2025-03-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-16","vendors":["Go standard library","golang.org/x/net"]},"summary":"Attackers can bypass HTTP proxy restrictions by using IPv6 zone IDs in hostnames, potentially exposing internal services or bypassing security controls.","url":"https://insights.sbomify.com/CVE-2025-22870/"}