CVE-2023-45289

published 5 Mar 2024 · updated 12 Nov 2026

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

4.3MediumCVSS 4.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.21.8 and 1.22.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.21.8, >=1.22.0-0 <1.22.11.21.8, 1.22.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-45289 severity on Zeptric[![CVE-2023-45289](https://zeptric.io/badge/cve/CVE-2023-45289.svg)](https://zeptric.io/cve/CVE-2023-45289)