The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-8368

CVE-2026-8368: Perl LWP::UserAgent Header Leak Vulnerability

CVE-2026-8368 is an information disclosure flaw in Perl LWP::UserAgent that leaks Authorization headers on cross-origin redirects, exposing credentials to attackers. This article covers technical details, versions, and fixes.

Published: May 17, 2026

CVE-2026-8368 Overview

CVE-2026-8368 is a credential exposure vulnerability in LWP::UserAgent versions before 6.83 for Perl. The library leaks Authorization and Proxy-Authorization headers on cross-origin HTTP redirects. When the library receives a 3xx response, its redirect handler strips only the Host and Cookie headers before issuing the follow-up request. Caller-supplied credential headers are forwarded unchanged, even when the redirect changes the scheme, host, or port. An attacker who controls a redirect target can therefore harvest the caller's credentials. The flaw is categorized as Insufficiently Protected Credentials [CWE-522].

Critical Impact

Any Perl application using LWP::UserAgent to call HTTP endpoints with bearer tokens, Basic auth, or proxy credentials risks leaking those credentials to attacker-controlled hosts via redirect chains.

Affected Products

  • LWP::UserAgent (libwww-perl) versions before 6.83
  • Perl applications and CPAN modules that depend on LWP::UserAgent for HTTP client functionality
  • Any tool or pipeline transitively using libwww-perl to issue authenticated HTTP requests

Discovery Timeline

  • 2026-05-12 - CVE-2026-8368 published to the National Vulnerability Database (NVD)
  • 2026-05-12 - Coordinated disclosure via the OpenWall oss-security mailing list
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-8368

Vulnerability Analysis

LWP::UserAgent is the de facto HTTP user agent for Perl and is widely embedded in build systems, monitoring tools, and CPAN modules. The library follows HTTP redirects automatically by default. When servicing a 3xx response, the redirect handler constructs a new HTTP::Request and copies most caller-supplied headers across.

The handler removes Host and Cookie headers before sending the follow-up request. It does not remove Authorization or Proxy-Authorization headers. As a result, credentials intended for the original target are transmitted verbatim to the redirect target, regardless of whether the redirect crosses an origin boundary.

A same-origin redirect carrying credentials is generally safe. A cross-origin redirect to an attacker-controlled host turns the redirect into an exfiltration channel. The attacker receives the credential header directly and can replay it against the legitimate service.

Root Cause

The root cause is incomplete header sanitization in the redirect path. The library trusted the original request's header set without comparing the origin of the next URL to the origin of the prior request. Modern HTTP clients (including curl with --location-trusted semantics and browser fetch with credential modes) treat credential-bearing headers as origin-scoped and strip them on cross-origin hops by default.

Attack Vector

Exploitation requires the victim application to issue an authenticated request to a URL that an attacker can influence. Common scenarios include:

  • Webhook delivery, link previews, or SSRF-style flows where target URLs are user-supplied
  • A compromised or malicious upstream service responding with 302 Location: https://attacker.example/
  • Open-redirect chains starting at a legitimate host but terminating at an attacker host

On redirect, the victim's LWP::UserAgent reissues the request to the attacker host with the original Authorization: Bearer ... or Authorization: Basic ... header intact.

text
 Change history for libwww-perl

 {{$NEXT}}
+    - LWP::UserAgent now strips Authorization and Proxy-Authorization headers
+      on cross-origin redirects (a different scheme, host, or port) to prevent
+      credential leakage to the redirect target. Same-origin redirects retain
+      credentials. Opt out with allow_credentialed_redirects => 1.
+      CVE-2026-8368 reported by Kai Zen; PoC and initial patch by Stig
+      Palmquist.

 6.82      2026-03-29 17:02:10Z
     - Fix env_proxy() warning for unrelated environment variables (GH#501)

Source: GitHub Commit Patch

Detection Methods for CVE-2026-8368

Indicators of Compromise

  • Outbound HTTP requests from Perl-based hosts containing Authorization or Proxy-Authorization headers directed at unexpected external domains following a 3xx response
  • Web server access logs at attacker-controlled domains receiving requests with credential headers from a libwww-perl/<version> User-Agent
  • Authentication audit logs showing valid bearer or Basic credentials used from unfamiliar source IPs shortly after a redirect event

Detection Strategies

  • Inventory installed Perl distributions and identify hosts where the installed libwww-perl version is below 6.83 using package manager or cpan -D LWP output
  • Inspect egress proxy logs for HTTP 3xx responses where the Location header points to a different origin than the original request, paired with Perl user agents
  • Review application code for calls to LWP::UserAgent->new that do not explicitly disable redirects (max_redirect => 0) when sending credentialed requests

Monitoring Recommendations

  • Forward HTTP egress proxy and DNS logs to a central analytics platform and alert on libwww-perl user agents resolving previously unseen external domains
  • Rotate and monitor API tokens or service credentials issued to Perl-based clients; alert on use from unexpected ASNs or geographies
  • Track redirect chains in outbound traffic and flag any chain that crosses scheme, host, or port boundaries while carrying authentication headers

How to Mitigate CVE-2026-8368

Immediate Actions Required

  • Upgrade libwww-perl to version 6.83 or later on every host, container image, and CI/CD runner that ships Perl
  • Rotate any long-lived bearer tokens, API keys, or Basic auth credentials previously sent through LWP::UserAgent to endpoints capable of issuing redirects
  • Audit application code paths that pass user-controlled URLs to LWP::UserAgent and add explicit origin allow-lists

Patch Information

The fix is included in libwww-perl 6.83, published on MetaCPAN. The patched redirect handler strips Authorization and Proxy-Authorization headers whenever the redirect target differs from the original request in scheme, host, or port. Same-origin redirects continue to retain credentials. Applications that require the previous behavior can opt back in by passing allow_credentialed_redirects => 1 to the user agent constructor. See the MetaCPAN Release Changes and the GitHub Commit Patch for full details.

Workarounds

  • Disable automatic redirect following on credentialed requests by setting max_redirect => 0 and handling 3xx responses explicitly in application code
  • Remove credential headers from the request object before invoking the user agent if the target URL is not fully trusted
  • Route outbound traffic through an egress proxy that strips Authorization headers on cross-origin redirects until the upgrade is deployed
bash
# Upgrade libwww-perl via cpanm
cpanm LWP::UserAgent~'>=6.83'

# Verify installed version
perl -MLWP::UserAgent -e 'print $LWP::UserAgent::VERSION, "\n"'

# Defensive usage pattern in application code
perl -e 'use LWP::UserAgent; my $ua = LWP::UserAgent->new(max_redirect => 0); 1'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPerl

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-522
  • Technical References
  • GitHub Commit Patch

  • GitHub Pull Request #284

  • GitHub Pull Request #512

  • MetaCPAN Release Changes

  • OpenWall OSS-Security Post
  • Related CVEs
  • CVE-2026-47373: Perl Crypt::SaltedHash Timing Attack Flaw

  • CVE-2026-46474: Trog::TOTP Perl Weak Secret Vulnerability

  • CVE-2026-8700: Crypt::DSA Perl Information Disclosure Flaw

  • CVE-2026-45179: Plack Middleware Statsd IP Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English