# CVE-2023-45289: Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http

- Severity: Medium 4.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-03-05T22:15:02.000Z
- Modified: 2026-06-17T06:28:35.857Z
- Also known as: GO-2024-2600, BIT-GOLANG-2023-45289
- Related: CGA-3j5f-rf5r-8cq9
- Weaknesses: CWE-212
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- net/http: before 1.21.8; from 1.22.0-0 before 1.22.1
- net/http/cookiejar: before 1.21.8; from 1.22.0-0 before 1.22.1
- stdlib (Go): before 1.21.8; from 1.22.0-0 before 1.22.1
- golang (Bitnami): before 1.21.8; from 1.22.0-0 before 1.22.1

## Every score

- CISA-ADP: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/issue/65065> (report, web)
- <https://go.dev/cl/569340> (fix, web)
- <https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg> (web)
- <https://pkg.go.dev/vuln/GO-2024-2600> (web)
- <https://security.netapp.com/advisory/ntap-20240329-0006/> (web)
- <http://www.openwall.com/lists/oss-security/2024/03/08/4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45289> (web)

## Sources

- CVE List: [CVE-2023-45289](https://www.cve.org/CVERecord?id=CVE-2023-45289), CVE Terms of Use, modified 2025-02-13
- Go Vulnerability Database: [GO-2024-2600](https://pkg.go.dev/vuln/GO-2024-2600), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-45289](https://nvd.nist.gov/vuln/detail/CVE-2023-45289), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2023-45289](https://osv.dev/vulnerability/BIT-GOLANG-2023-45289), Apache-2.0, modified 2026-01-28

---

Page: https://cve.day/CVE-2023-45289 · Whole record: https://cve.day/CVE-2023-45289.json · Rebuilt by cve.day 2026-11-25T22:58:33.266Z
