Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/net
  4. ›
  5. CVE-2025-22870

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

March 12, 2025 (updated May 9, 2025)

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.

References

  • github.com/advisories/GHSA-qxp5-gwg8-xv66
  • go-review.googlesource.com/q/project:net
  • go.dev/cl/654697
  • go.dev/issue/71984
  • nvd.nist.gov/vuln/detail/CVE-2025-22870
  • pkg.go.dev/vuln/GO-2025-3503
  • security.netapp.com/advisory/ntap-20250509-0007

Code Behaviors & Features

Detect and mitigate CVE-2025-22870 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.36.0

Fixed versions

  • 0.36.0

Solution

Upgrade to version 0.36.0 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-115: Misinterpretation of Input
  • CWE-20: Improper Input Validation

Source file

go/golang.org/x/net/CVE-2025-22870.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:56 +0000.