Insertion of Sensitive Information Into Sent Data Affecting std/net/http package, versions <1.22.11>=1.23.0-0 <1.23.5>=1.24.0-0 <1.24.0-rc.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (24th 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-14548597
  • published6 Jan 2026
  • disclosed28 Jan 2025
  • creditKyle Seely

Introduced: 28 Jan 2025

CVE-2024-45336  (opens in a new tab)
CWE-201  (opens in a new tab)

How to fix?

Upgrade std/net/http to version 1.22.11, 1.23.5, 1.24.0-rc.2 or higher.

Overview

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

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data.

Go Vulnerability Report:
The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com.In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2.

CVSS Base Scores

version 4.0
version 3.1