CVE-2026-40490: Asynchttpclient Cross Domain Credential Leak

AsyncHttpClient instances unconditionally copy Realm credentials to arbitrary redirect targets without checking domain boundaries. This propagates plaintext credentials on cross-domain redirects or HTTPS-to-HTTP downgrades. To fix this, ensure the realm is stripped when crossing origin boundaries securely.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-40490-asynchttpclient-cross-domain-credential-leak --engine opengrep

Description

AsyncHttpClient instances unconditionally copy Realm credentials to arbitrary redirect targets without checking domain boundaries. This propagates plaintext credentials on cross-domain redirects or HTTPS-to-HTTP downgrades. To fix this, ensure the realm is stripped when crossing origin boundaries securely.