CVE-2024-45336

Sensitive headers incorrectly sent after cross-domain redirect in net/http

State
Published
Severity
6.1 Medium
Published
Jan 28, 2025
Updated
Sep 18, 2025
Reserved
Aug 27, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
net/httpGo standard library
  • before 1.22.11Affected
  • 1.23.0-0 to before 1.23.5Affected
  • 1.24.0-0 to before 1.24.0-rc.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.