Live threats

All CVEs / Go standard library

CVE-2023-45289Go standard library net/http

Medium 4.3

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for net/http.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

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.