Report

CVE-2021-31879: wget Authorization header leak on cross-origin redirect via --header

2447660d-814e-427e-91f8-2ec687b81afd

In wget v1.21, when a user supplies a custom Authorization header via the --header command-line option (e.g., --header="Authorization: Bearer <token>"), wget unconditionally forwards that header to ALL subsequent HTTP requests in a redirect chain — including redirects to completely different hosts/origins. This leaks authentication credentials to third-party servers controlled by an attacker.