CVE-2023-45289

Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http

State
Published
Severity
4.3 Medium
Published
Mar 5, 2024
Updated
Feb 13, 2025
Reserved
Oct 6, 2023

Read the record on cve.org

Description

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.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
net/httpGo standard library
  • before 1.21.8Affected
  • 1.22.0-0 to before 1.22.1Affected
net/http/cookiejarGo standard library
  • before 1.21.8Affected
  • 1.22.0-0 to before 1.22.1Affected

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.