CVE-2025-4673 Sensitive headers not cleared on cross-origin redirect in net/http

Medium 6.8 Published Updated

Attackers can leak sensitive proxy authentication headers during cross-origin redirects in Go applications using the net/http package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-4673?

CVE-2025-4673 is a medium-severity vulnerability in Go standard library net/http, published on 11 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Proxy-Authorization and Proxy-Authenticate headers persisted on cross-origin redirects potentially leaking sensitive information.

Which versions are affected by CVE-2025-4673?

2 open source packages ship an affected version, including golang and stdlib.

PackageAffectedFixed in
golang BitnamiAll versions1.23.10, 1.24.4
stdlib GoAll versions1.23.10, 1.24.4
Linux distribution packages (38)
opentelemetry-collector AlmaLinux:10All versions0.127.0-3.el10_0
delve AlmaLinux:8All versions1.24.1-1.module_el8.10.0+3977+66935a26
go-toolset AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
golang AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
golang-bin AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
golang-docs AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
golang-misc AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
golang-src AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
golang-tests AlmaLinux:8All versions1.24.4-1.module_el8.10.0+4027+41c6fed2
go-toolset AlmaLinux:9All versions1.24.4-1.el9_6
golang AlmaLinux:9All versions1.24.4-1.el9_6
golang-bin AlmaLinux:9All versions1.24.4-1.el9_6
golang-docs AlmaLinux:9All versions1.24.4-1.el9_6
golang-misc AlmaLinux:9All versions1.24.4-1.el9_6
golang-race AlmaLinux:9All versions1.24.4-1.el9_6
golang-src AlmaLinux:9All versions1.24.4-1.el9_6
golang-tests AlmaLinux:9All versions1.24.4-1.el9_6
opentelemetry-collector AlmaLinux:9All versions0.127.0-2.el9_6
opentelemetry-collector Red Hat:enterprise_linux:10.0All versions0:0.127.0-3.el10_0
delve Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.1-1.module+el8.10.0+22945+b2c96a17
delve-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.1-1.module+el8.10.0+22945+b2c96a17
delve-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.1-1.module+el8.10.0+22945+b2c96a17
go-toolset Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
golang Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
golang-bin Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
golang-docs Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
golang-misc Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
golang-src Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
golang-tests Red Hat:enterprise_linux:8::appstreamAll versions0:1.24.4-1.module+el8.10.0+23323+67916f33
opentelemetry-collector Red Hat:enterprise_linux:9::appstreamAll versions0:0.127.0-2.el9_6
opentelemetry-collector Red Hat:rhel_eus:9.4::appstreamAll versions0:0.127.0-2.el9_4
golang Rocky Linux:10All versions0:1.24.4-1.el10_0
opentelemetry-collector Rocky Linux:10All versions0:0.127.0-3.el10_0
delve Rocky Linux:8All versions0:1.24.1-1.module+el8.10.0+1951+c74bd827
delve Rocky Linux:8All versions0:1.24.1-1.module+el8.10.0+1987+42f155bb
go-toolset Rocky Linux:8All versions0:1.24.4-1.module+el8.10.0+2008+0bb8dc3e
golang Rocky Linux:8All versions0:1.24.4-1.module+el8.10.0+2008+0bb8dc3e
golang Rocky Linux:9All versions0:1.24.4-1.el9_6

How do I fix CVE-2025-4673?

Upgrade golang to a fixed version for your release line: 1.23.10 or 1.24.4.

Is CVE-2025-4673 being exploited?

There is no known exploitation of CVE-2025-4673 in the wild and no public exploit code.

Sources

Also known as ALSA-2025:10672, ALSA-2025:10676, ALSA-2025:15887, ALSA-2025:16432, AZL-63716, AZL-63725 and 87 more.

Is CVE-2025-4673 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free