LWP::UserAgent Cross-Origin Credential Leakage Vulnerability

Vulnerability

A vulnerability exists in LWP::UserAgent versions prior to 6.83 for Perl, where Authorization and Proxy-Authorization headers are improperly forwarded during cross-origin redirects. This flaw allows credentials to be sent to an attacker-controlled host, potentially leading to unauthorized access. The issue arises because the redirect handler only removes the Host and Cookie headers, leaving sensitive authorization information intact.

Impact

Exploitation of this vulnerability could result in the unintended disclosure of authorization credentials to a third-party server, particularly in scenarios where cross-origin redirects are involved.

Reproduction

To reproduce this vulnerability, use LWP::UserAgent to send a request that includes Authorization or Proxy-Authorization headers. Ensure that the response includes a cross-origin redirect (302, 303, or 307 status code) to a URL controlled by an attacker. The follow-up request will inadvertently include the authorization headers, thereby leaking credentials to the attacker's server.

Remediation

Users can upgrade to LWP::UserAgent version 6.83 or later, where this vulnerability has been addressed. Instructions for upgrading can be found on MetaCPAN.

Added: May 12, 2026, 3:24 PM
Updated: May 12, 2026, 3:24 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
0.0
relevance
8.1
threat
4.8
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.