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

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

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Jun 2025
- **Updated:** 11 Jun 2025
- **Also known as:** ALSA-2025:10672, ALSA-2025:10676, ALSA-2025:15887, ALSA-2025:16432, AZL-63716, AZL-63725, AZL-63735, AZL-63866, AZL-72128, AZL-78946, AZL-98709, BELL-CVE-2025-4673, BIT-golang-2025-4673, CLEANSTART-2026-MQ77051, CLEANSTART-2026-QD51578, CLEANSTART-2026-ZG63410, CLSA-2025-1755115606, DEBIAN-CVE-2025-4673, ECHO-eb07-f8c0-c0ff, GHSA-62jj-gr2r-5c34, GO-2025-3751, MINI-2phj-fpc7-249h, MINI-342x-5xwm-rrp9, MINI-34pc-cpjv-fxvg, MINI-3696-qfp3-376v, MINI-39w4-85f9-4qmw, MINI-3f2p-p2f4-9xqx, MINI-3gvj-h4hg-558c, MINI-3mfw-8gjc-hw4h, MINI-4rh2-vwv3-cgxh, MINI-4vcr-4rgf-x5jp, MINI-624v-gh8c-wfmp, MINI-66cp-r3qg-x7pr, MINI-6fmf-qxh4-8pww, MINI-6gg3-x7c5-fqqc, MINI-6pcx-cqr9-hxw7, MINI-7w7f-pxxm-678c, MINI-8mj3-274f-mjqj, MINI-8vxq-j4j2-px5r, MINI-95q8-mq7j-m67f, MINI-9c2c-3v2v-g349, MINI-9cwg-g36w-x4gp, MINI-c5q8-xj7r-q29r, MINI-c89f-j347-4f7h, MINI-cgf8-p3fg-58ww, MINI-cw7h-24pm-r9px, MINI-cx97-cpj5-g9v8, MINI-f6j6-hqxf-2gwv, MINI-fpgf-m584-q77v, MINI-h467-j954-2qxq, MINI-hchv-c3hv-v3fw, MINI-j535-3qq4-h524, MINI-jh9x-9rc3-p5wr, MINI-m6c5-8c29-9w85, MINI-m7w4-wwp3-pgmc, MINI-m7xw-hc9x-cr56, MINI-p987-p2w5-34g4, MINI-pfjj-8pqw-wj8j, MINI-pmrx-9p79-6ww5, MINI-ppr6-x6cp-86p5, MINI-pv4h-g6mm-9h76, MINI-pxfc-2w59-7vrx, MINI-q542-j4w2-4wm9, MINI-qm34-7f7w-jw9q, MINI-r882-rvjg-275r, MINI-r964-g9v9-rr8w, MINI-rv2f-c7jc-2ghr, MINI-v36f-4vmg-gffq, MINI-vff9-vmvx-h262, MINI-vvqq-hhrq-pm64, MINI-w86r-56x3-24v6, MINI-wcw8-8v5r-vh8q, MINI-wjx7-928f-v7wv, MINI-wx3j-q49v-v4rg, MINI-wxpr-3w57-w58j, MINI-x32c-jq8c-g37h, MINI-x9j8-59hv-c84v, MINI-xm9j-m9j6-3hrc, OESA-2025-1742, OESA-2025-1749, OESA-2025-1766, OESA-2025-2067, OESA-2025-2068, RHSA-2025:10672, RHSA-2025:15406, RHSA-2025:15887, RHSA-2025:16432, RLSA-2025:10672, RLSA-2025:10676, RLSA-2025:10677, RLSA-2025:15887, RLSA-2025:16432, UBUNTU-CVE-2025-4673

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `golang` | Bitnami | All versions | 1.23.10, 1.24.4 |
| `stdlib` | Go | All versions | 1.23.10, 1.24.4 |
| `opentelemetry-collector` | AlmaLinux:10 | All versions | 0.127.0-3.el10_0 |
| `delve` | AlmaLinux:8 | All versions | 1.24.1-1.module_el8.10.0+3977+66935a26 |
| `go-toolset` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `golang` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `golang-bin` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `golang-docs` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `golang-misc` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `golang-src` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `golang-tests` | AlmaLinux:8 | All versions | 1.24.4-1.module_el8.10.0+4027+41c6fed2 |
| `go-toolset` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang-bin` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang-docs` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang-misc` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang-race` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang-src` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `golang-tests` | AlmaLinux:9 | All versions | 1.24.4-1.el9_6 |
| `opentelemetry-collector` | AlmaLinux:9 | All versions | 0.127.0-2.el9_6 |
| `opentelemetry-collector` | Red Hat:enterprise_linux:10.0 | All versions | 0:0.127.0-3.el10_0 |
| `delve` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.1-1.module+el8.10.0+22945+b2c96a17 |
| `delve-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.1-1.module+el8.10.0+22945+b2c96a17 |
| `delve-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.1-1.module+el8.10.0+22945+b2c96a17 |
| `go-toolset` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `golang` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `golang-bin` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `golang-docs` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `golang-misc` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `golang-src` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `golang-tests` | Red Hat:enterprise_linux:8::appstream | All versions | 0:1.24.4-1.module+el8.10.0+23323+67916f33 |
| `opentelemetry-collector` | Red Hat:enterprise_linux:9::appstream | All versions | 0:0.127.0-2.el9_6 |
| `opentelemetry-collector` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.127.0-2.el9_4 |
| `golang` | Rocky Linux:10 | All versions | 0:1.24.4-1.el10_0 |
| `opentelemetry-collector` | Rocky Linux:10 | All versions | 0:0.127.0-3.el10_0 |
| `delve` | Rocky Linux:8 | All versions | 0:1.24.1-1.module+el8.10.0+1951+c74bd827 |
| `delve` | Rocky Linux:8 | All versions | 0:1.24.1-1.module+el8.10.0+1987+42f155bb |
| `go-toolset` | Rocky Linux:8 | All versions | 0:1.24.4-1.module+el8.10.0+2008+0bb8dc3e |
| `golang` | Rocky Linux:8 | All versions | 0:1.24.4-1.module+el8.10.0+2008+0bb8dc3e |
| `golang` | Rocky Linux:9 | All versions | 0: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.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-4673 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2025-4673 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang (Bitnami): affected all versions; fixed in 1.23.10, 1.24.4
- stdlib (Go): affected all versions; fixed in 1.23.10, 1.24.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-4673/ (Markdown: https://insights.sbomify.com/CVE-2025-4673/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-4673
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-4673
- OSV: https://osv.dev/vulnerability/CVE-2025-4673

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-4673/
Summaries are generated and may contain mistakes; the official description above is the record.
