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

CVE-2025-22870 · Severity: medium · CVSS 4.4 · Published 2025-03-12

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.

Technologies: golang.org/x/net (Go), stdlib (Go). Vendors: Go.

Quick answers

Is CVE-2025-22870 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-22870 being exploited in the wild.
How severe is CVE-2025-22870?
Medium severity, with a CVSS score of 4.4, published 12 March 2025.
Which products and versions are affected?
golang.org/x/net (Go) < 0.36.0, SEMVER:introduced=0,fixed=0.36.0; stdlib (Go) SEMVER:introduced=0,fixed=1.23.7,introduced=1.24.0-0,fixed=1.24.1.
Is there a fix for CVE-2025-22870?
Yes. golang.org/x/net (Go): upgrade to 0.36.0 or later; stdlib (Go): upgrade to 1.24.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-22870?
Check whether you run golang.org/x/net (Go) or stdlib (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • golang.org/x/net (Go): upgrade to 0.36.0 or later
    go get golang.org/x/net@v0.36.0
  • stdlib (Go): upgrade to 1.24.1 or later
    go get stdlib@v1.24.1

Affected products

  • golang.org/x/net (Go) < 0.36.0, SEMVER:introduced=0,fixed=0.36.0
  • stdlib (Go) SEMVER:introduced=0,fixed=1.23.7,introduced=1.24.0-0,fixed=1.24.1

Identifiers

  • CVE-2025-22870
  • GHSA-qxp5-gwg8-xv66
  • GO-2025-3503

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.