Unintended Proxy or Intermediary Affecting std/net/http/cgi package, versions <1.6.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
81.56% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDNETHTTPCGI-14548633
  • published6 Jan 2026
  • disclosed9 Aug 2022
  • creditDominic Scheirlinck

Introduced: 9 Aug 2022

CVE-2016-5386  (opens in a new tab)
CWE-441  (opens in a new tab)

How to fix?

Upgrade std/net/http/cgi to version 1.6.3 or higher.

Overview

std/net/http/cgi is a Go standard library package std/net/http/cgi

Affected versions of this package are vulnerable to Unintended Proxy or Intermediary.

Go Vulnerability Report:
An input validation flaw in the CGI components allows the HTTP_PROXY environment variable to be set by the incoming Proxy header, which changes where Go by default proxies all outbound HTTP requests.This environment variable is also used to set the outgoing proxy, enabling an attacker to insert a proxy into outgoing requests of a CGI program.Read more about "httpoxy" here: https://httpoxy.org.

CVSS Base Scores

version 4.0
version 3.1