Skip to main content

LWP::UserAgent CVE-2026-8368

| EUVDEUVD-2026-29492 MEDIUM
Insufficiently Protected Credentials (CWE-522)
2026-05-12 CPANSec GHSA-39wp-j2gg-h44j
6.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Perl app using LWP::UserAgent with credentials
  2. Delivery
    Control or compromise redirect-issuing server
  3. Exploit
    Issue cross-origin 3xx redirect response
  4. Execution
    LWP::UserAgent forwards Authorization header to redirect target
  5. Impact
    Capture leaked credentials at attacker-controlled host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
Exploitation Conditions

The vulnerable application must use LWP::UserAgent to issue HTTP requests that include an Authorization or Proxy-Authorization header - either set directly by the caller or injected via default_headers. The attacker must be able to influence at least one 3xx redirect response in the HTTP transaction; this requires controlling or compromising a server that the Perl application contacts, or occupying a man-in-the-middle position on the network path. The redirect must cross an origin boundary (different scheme such as https to http, different hostname, or different port) to trigger the leakage - same-origin redirects do not expose credentials. CVSS PR:L confirms the attacker requires low-privilege access to a position from which they can serve redirect responses; unauthenticated remote exploitation against arbitrary clients is not possible. The vulnerability is not exploitable when: LWP::UserAgent is used without credential headers; the application has disabled redirect following (max_redirect => 0); or the library has been upgraded to 6.83 or later.

Impact

The overall real-world risk is moderate-to-low despite a CVSS confidentiality impact of High. CVSS 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) reflects that network-reachable exploitation is straightforward in complexity once the attacker has a low-privilege foothold, but PR:L indicates the attacker must control or compromise a server that the vulnerable Perl application communicates with - they cannot directly attack an arbitrary client from the open internet. EPSS is 0.02% (4th percentile), consistent with SSVC's exploitation status of 'none' and automatable of 'no'; this is not being mass-exploited and requires a specific deployment context. Technical impact is rated 'partial' by SSVC, as only confidentiality is affected (no integrity or availability impact) and exploitation is constrained to environments where an attacker can inject a cross-origin redirect. The POC was submitted alongside the vulnerability report per changelog attribution ('PoC and initial patch by Stig Palmquist') and the GitHub PR is public, meaning reproduction is accessible to motivated actors. The principal real risk is in server-side Perl applications that embed credentials in LWP::UserAgent requests and fetch resources from partially-trusted or third-party endpoints capable of issuing redirects - a common pattern in API integration and scraping pipelines. The fix is low-disruption and same-origin redirects are unaffected, so upgrade urgency is high for at-risk deployments but not a critical emergency for isolated internal tooling.

Exploit ScenarioDerived

An attacker who controls or has compromised a server that a Perl application communicates with - for example, a third-party API endpoint or an intermediate HTTP proxy - issues a 302 redirect pointing to an attacker-controlled host on a different domain or port. LWP::UserAgent, running in a vulnerable version, clones the original request including its Authorization or Proxy-Authorization header and sends it to the redirect target, where the attacker captures the credential in plaintext. A proof-of-concept was included in the original vulnerability report and is accessible via the public GitHub PR at https://github.com/libwww-perl/libwww-perl/pull/512.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Credential leakage in LWP::UserAgent before 6.83 (Perl) exposes Authorization and Proxy-Authorization headers to attacker-controlled redirect targets across cross-origin 3xx redirects. The library's redirect handler stripped only Host and Cookie on follow-up requests, leaving credential headers intact even when the redirect crossed a scheme, host, or port boundary. Authenticated Perl HTTP clients - including server-side applications, crawlers, API integrators, and automation tooling - are affected whenever caller-supplied credentials are passed to a UserAgent instance that can be redirected. No public exploit has been independently confirmed beyond the proof-of-concept submitted with the vulnerability report, and CISA KEV does not list this CVE; however, the exploitation pattern is straightforward and mirrors a well-documented class of credential-leakage flaws in HTTP client libraries.

RemediationAI

The primary fix is upgrading to libwww-perl 6.83 or later, which automatically strips Authorization and Proxy-Authorization headers on cross-origin 3xx redirects (different scheme, host, or port). The patched release is available on CPAN; the changelog is at https://metacpan.org/release/OALDERS/libwww-perl-6.83/changes and the upstream fix commit is at https://github.com/libwww-perl/libwww-perl/commit/9c4aeb6f2dd32f2b7eaf2d7827cade31ea6cb2c6.patch. Callers who legitimately require cross-origin credential forwarding can opt out by instantiating the agent with allow_credentialed_redirects => 1, but this should be applied only to cases where the redirect target is fully trusted. As a compensating control prior to patching, callers can disable automatic redirect following (max_redirect => 0) and handle 3xx responses manually, stripping credential headers before re-issuing the request; the trade-off is that redirect logic must be implemented in application code, increasing maintenance burden. Alternatively, callers can set requests_redirectable => [] to prevent any method from being auto-redirected. Neither workaround is needed once 6.83 is installed.

Affected VersionsENISA

LWP::UserAgent 0 <6.83

Affected Packages

euvd lwp_useragent fix: 6.83

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LWP::UserAgent (libwww-perl) is the de facto standard HTTP client library for Perl, widely used in CPAN modules, CGI scripts, API clients, and automation pipelines. The affected code path is the redirect handler in LWP/UserAgent.pm, which clones the original request and re-submits it to the redirect location. Prior to 6.83, this clone preserved all caller-supplied headers - including Authorization and Proxy-Authorization - regardless of whether the redirect destination shared the same scheme, host, or port as the original request. CWE-522 (Insufficiently Protected Credentials) captures the root cause: credentials transmitted by the library were not adequately scoped to the intended recipient. The fix (commit 9c4aeb6f) mirrors the remediation approach taken for libcurl CVE-2018-1000007, explicitly stripping the two credential headers when the new URI differs in scheme, host, or port. The patch also introduces an opt-out constructor parameter, allow_credentialed_redirects => 1, for callers that intentionally rely on cross-origin credential forwarding. CPE data identifies the affected product as cpe:2.3:a:oalders:lwp::useragent:*:*:*:*:*:*:*:*, covering all versions preceding 6.83.

Know when Lwp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
CVSS changed
May 19, 2026 - 18:22 NVD
6.5 (MEDIUM)
CVE Published
May 12, 2026 - 14:01 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

LWP::UserAgent versions before 6.83 for Perl leak Authorization and Proxy-Authorization headers on cross-origin redirects.

On a 3xx response, the redirect handler strips only Host and Cookie before issuing the follow-up request. Caller-supplied Authorization and Proxy-Authorization headers are sent unchanged to the redirect target, including across scheme, host, or port changes.

A redirect to an attacker controlled host therefore discloses the caller's credentials to that host.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy