All CVEs / Go standard library
CVE-2023-45289Go standard library net/http
Medium 4.3
Follow: this CVE · Go standard library · Go standard library net/http We alert you by email or Slack (account required).
- Priority
- 26
- CVSS 3.1
- 4.3
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 67
- Auth required
- Yes
- Published
- Mar 5, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for net/http.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.21.8 |
1.21.8 |
go get stdlib@v1.21.8 |
| Go | stdlib |
≥ 1.22.0-0 < 1.22.1 |
1.22.1 |
go get stdlib@v1.22.1 |
Per OSV / GitHub Advisories (GO-2024-2600). Check the version in your lockfile before upgrading.
Affected products
- Go standard library · net/http
- Go standard library · net/http/cookiejar
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update 5.1.6 for Multi-Linux Manager Server · SUSE · SUSE-SU-2026:5436-1 · Nov 25, 2026 Critical
- Security update for golang-github-prometheus-prometheus · SUSE · SUSE-SU-2026:4606-1 · Oct 9, 2026 Critical
- Security update 5.2.1 for Multi-Linux Manager Client Tools · SUSE · SUSE-SU-2026:4585-1 · Oct 8, 2026 Critical
- Red Hat Security Advisory: OpenShift Container Platform 4.16.0 security update · Red Hat · RHSA-2024:0045 · Oct 2, 2024 High
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.