The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2.
After a little bit of Git archaeology, I found that this was fixed in Go 1.22.11 with: https://github.com/golang/go/commit/b72d56f98d6620eb ... and in Go 1.23.5 with: https://github.com/golang/go/commit/bb8230f805359456
This issue has been addressed in the following products: RHOL-6.1-RHEL-9 Via RHSA-2025:3131 https://access.redhat.com/errata/RHSA-2025:3131
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2025:3335 https://access.redhat.com/errata/RHSA-2025:3335
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Extended Update Support Via RHSA-2025:3593 https://access.redhat.com/errata/RHSA-2025:3593
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2025:3772 https://access.redhat.com/errata/RHSA-2025:3772
This issue has been addressed in the following products: Red Hat OpenShift Service Mesh 2.5 for RHEL 8 Via RHSA-2025:3922 https://access.redhat.com/errata/RHSA-2025:3922
This issue has been addressed in the following products: Red Hat Advanced Cluster Management for Kubernetes 2.11 for RHEL 9 Via RHSA-2025:4810 https://access.redhat.com/errata/RHSA-2025:4810
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2025:7326 https://access.redhat.com/errata/RHSA-2025:7326
This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2025:7466 https://access.redhat.com/errata/RHSA-2025:7466
This issue has been addressed in the following products: Satellite Client 6 for RHEL 8 Satellite Client 6 for RHEL 9 Satellite Client 6 for RHEL 10 Via RHSA-2025:7624 https://access.redhat.com/errata/RHSA-2025:7624