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-40490

CVE-2026-40490: AsyncHttpClient Information Disclosure

CVE-2026-40490 is an information disclosure vulnerability in AsyncHttpClient that leaks credentials during cross-domain redirects. This article covers technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40490 Overview

The AsyncHttpClient (AHC) library, a widely-used Java library for executing HTTP requests and asynchronously processing HTTP responses, contains a credential leakage vulnerability when redirect following is enabled. When followRedirect(true) is configured, versions prior to 3.0.9 and 2.14.5 forward Authorization and Proxy-Authorization headers along with Realm credentials to arbitrary redirect targets regardless of domain, scheme, or port changes.

This vulnerability allows credentials to leak on cross-domain redirects and HTTPS-to-HTTP downgrades. Even when stripAuthorizationOnRedirect is set to true, the Realm object containing plaintext credentials is still propagated to the redirect request, causing credential re-generation for Basic and Digest authentication schemes via NettyRequestFactory.

Critical Impact

An attacker who controls a redirect target (via open redirect, DNS rebinding, or MITM on HTTP) can capture Bearer tokens, Basic auth credentials, or any other Authorization header value, leading to account compromise and unauthorized access.

Affected Products

  • AsyncHttpClient versions prior to 3.0.9
  • AsyncHttpClient versions prior to 2.14.5
  • Java applications using AHC with redirect following enabled (followRedirect(true))

Discovery Timeline

  • 2026-04-18 - CVE CVE-2026-40490 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40490

Vulnerability Analysis

This vulnerability is classified as an Information Exposure issue (CWE-200) that affects how AsyncHttpClient handles credential propagation during HTTP redirects. The core issue lies in the Redirect30xInterceptor.java component, which fails to properly validate the target origin before forwarding sensitive authentication data.

When a redirect response (301, 302, 303, 307, or 308) is received, the library constructs a new request to the redirect location. Prior to the fix, this new request blindly inherited the original request's Realm object and Authorization headers, regardless of whether the redirect crossed security boundaries such as different domains, ports, or protocol downgrades from HTTPS to HTTP.

The vulnerability is particularly insidious because even the existing stripAuthorizationOnRedirect configuration option was insufficient—while it could strip the Authorization header, the Realm object containing plaintext credentials was still passed to NettyRequestFactory, which would regenerate the authentication headers for Basic and Digest schemes.

Root Cause

The root cause is improper credential handling in the redirect interception logic. The Redirect30xInterceptor class did not implement origin validation checks before propagating authentication credentials to redirect targets. Specifically:

  1. The RequestBuilder unconditionally copied the Realm object from the original request: .setRealm(request.getRealm())
  2. No comparison was made between the original request URI and the redirect target URI to detect cross-origin redirects
  3. HTTPS-to-HTTP protocol downgrades were not detected, allowing credentials to be sent over unencrypted connections
  4. The stripAuthorizationOnRedirect option only partially mitigated the issue by not addressing Realm-based credential regeneration

Attack Vector

The vulnerability requires network access and relies on an attacker being able to control or influence redirect targets. Attack scenarios include:

  1. Open Redirect Exploitation: An attacker discovers an open redirect vulnerability on a trusted domain and chains it with this credential leakage to capture authentication tokens
  2. DNS Rebinding: An attacker uses DNS rebinding techniques to redirect requests to their controlled server after initial validation passes
  3. Man-in-the-Middle on HTTP: For applications making initial requests over HTTP, an attacker on the network can inject redirect responses pointing to their credential-harvesting server
  4. Compromised Third-Party Redirects: If an application follows redirects from third-party APIs or services, a compromise of those services could lead to credential theft

The following patch from the security fix demonstrates the proper origin validation:

java
                         (statusCode == MOVED_PERMANENTLY_301 || statusCode == SEE_OTHER_303 || statusCode == FOUND_302 && !config.isStrict302Handling());
                 boolean keepBody = statusCode == TEMPORARY_REDIRECT_307 || statusCode == PERMANENT_REDIRECT_308 || statusCode == FOUND_302 && config.isStrict302Handling();
 
+                HttpHeaders responseHeaders = response.headers();
+                String location = responseHeaders.get(LOCATION);
+                Uri newUri = Uri.create(future.getUri(), location);
+                LOGGER.debug("Redirecting to {}", newUri);
+
+                boolean sameBase = request.getUri().isSameBase(newUri);
+                boolean schemeDowngrade = request.getUri().isSecured() && !newUri.isSecured();
+                boolean stripAuth = !sameBase || schemeDowngrade || stripAuthorizationOnRedirect;
+
+                if (stripAuth && (request.getRealm() != null || request.getHeaders().contains(AUTHORIZATION))) {
+                    LOGGER.debug("Stripping credentials on redirect to {}", newUri);
+                }
+
                 final RequestBuilder requestBuilder = new RequestBuilder(switchToGet ? GET : originalMethod)
                         .setChannelPoolPartitioning(request.getChannelPoolPartitioning())
                         .setFollowRedirect(true)
                         .setLocalAddress(request.getLocalAddress())
                         .setNameResolver(request.getNameResolver())
                         .setProxyServer(request.getProxyServer())
-                        .setRealm(request.getRealm())
+                        .setRealm(stripAuth ? null : request.getRealm())
                         .setRequestTimeout(request.getRequestTimeout());
 
+                if (stripAuth) {
+                    future.setRealm(null);
+                    future.setProxyRealm(null);
+                }

Source: GitHub Commit 6b2fbb7f8

Detection Methods for CVE-2026-40490

Indicators of Compromise

  • Outbound HTTP requests containing Authorization headers being sent to unexpected external domains
  • HTTP traffic logs showing authentication headers transmitted over unencrypted HTTP connections following HTTPS requests
  • Unusual redirect chains in application logs where authenticated requests follow redirects to third-party domains
  • Authentication token reuse or unauthorized access from IP addresses associated with known redirect targets

Detection Strategies

  • Implement network monitoring to detect Authorization headers being sent to domains outside your trusted list
  • Configure web application firewalls to alert on cross-origin redirects that include authentication headers
  • Deploy Java application monitoring to track AsyncHttpClient redirect behavior and flag credential propagation across domain boundaries
  • Review application dependencies using software composition analysis (SCA) tools to identify vulnerable AsyncHttpClient versions

Monitoring Recommendations

  • Enable debug logging for AsyncHttpClient to track redirect flows and credential handling
  • Monitor outbound network traffic for authentication headers sent to unexpected destinations
  • Implement alerting for HTTPS-to-HTTP downgrades in application traffic patterns
  • Track Maven/Gradle dependency updates and alert when vulnerable library versions are detected in builds

How to Mitigate CVE-2026-40490

Immediate Actions Required

  • Upgrade AsyncHttpClient to version 3.0.9 or 2.14.5 immediately to receive the complete security fix
  • Audit all applications using AsyncHttpClient to identify those with redirect following enabled
  • Review application logs for evidence of credential leakage to unauthorized domains
  • Rotate any credentials (Bearer tokens, API keys, Basic auth passwords) that may have been exposed through this vulnerability

Patch Information

The fix is available in AsyncHttpClient versions 3.0.9 and 2.14.5. The patch automatically strips Authorization and Proxy-Authorization headers and clears Realm credentials whenever a redirect crosses origin boundaries (different scheme, host, or port) or downgrades from HTTPS to HTTP.

For Maven projects, update your pom.xml:

xml
<!-- For 3.x branch -->
<dependency>
    <groupId>org.asynchttpclient</groupId>
    <artifactId>async-http-client</artifactId>
    <version>3.0.9</version>
</dependency>

<!-- For 2.x branch -->
<dependency>
    <groupId>org.asynchttpclient</groupId>
    <artifactId>async-http-client</artifactId>
    <version>2.14.5</version>
</dependency>

For detailed patch information, see the GitHub Security Advisory GHSA-cmxv-58fp-fm3g and release notes for version 3.0.9 and version 2.14.5.

Workarounds

  • Disable redirect following entirely with followRedirect(false) and implement manual redirect handling with proper origin validation
  • Set stripAuthorizationOnRedirect(true) in client configuration AND avoid using Realm-based authentication with redirect following enabled (note: this is insufficient as a complete fix on unpatched versions)
  • Implement a custom RedirectInterceptor that validates redirect targets against an allowlist of trusted domains before forwarding credentials
  • Use network-level controls to restrict outbound connections from applications to only approved destinations
bash
# Configuration example for disabling automatic redirects
# In your Java application configuration:

# Option 1: Disable redirect following completely
asyncHttpClient = Dsl.asyncHttpClient(
    Dsl.config()
        .setFollowRedirect(false)
)

# Option 2: Partial mitigation (insufficient alone on unpatched versions)
asyncHttpClient = Dsl.asyncHttpClient(
    Dsl.config()
        .setFollowRedirect(true)
        .setStripAuthorizationOnRedirect(true)
)

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechAsynchttpclient

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Commit Change

  • GitHub Commit Change

  • GitHub Release Version 2.14.5

  • GitHub Release Version 3.0.9

  • GitHub Security Advisory GHSA-cmxv-58fp-fm3g
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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