Improper Removal of Sensitive Information Before Storage or Transfer Affecting std/net/http package, versions <1.21.8>=1.22.0-0 <1.22.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (64th 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-STDNETHTTP-14548594
  • published6 Jan 2026
  • disclosed5 Mar 2024
  • creditJuho Nurminen

Introduced: 5 Mar 2024

CVE-2023-45289  (opens in a new tab)
CWE-212  (opens in a new tab)

How to fix?

Upgrade std/net/http to version 1.21.8, 1.22.1 or higher.

Overview

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

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer.

Go Vulnerability Report:
When following an HTTP redirect to a domain which is not a subdomain match or exact match of the initial domain, an http.Client does not forward sensitive headers such as "Authorization" or "Cookie". For example, a redirect from foo.com to www.foo.com will forward the Authorization header, but a redirect to bar.com will not.A maliciously crafted HTTP redirect could cause sensitive headers to be unexpectedly forwarded.

CVSS Base Scores

version 4.0
version 3.1