{"answers":{"affected":"4 open source packages ship an affected version, including org.asynchttpclient:async-http-client.","exploited":"There is no known exploitation of CVE-2026-40490 in the wild and no public exploit code.","fix":"Upgrade org.asynchttpclient:async-http-client to a fixed version for your release line: 2.14.5 or 3.0.9.","what":"CVE-2026-40490 is a medium-severity vulnerability in AsyncHttpClient async-http-client, published on 18 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40490 and fix it if it is affected.\n\nWhat it is: CVE-2026-40490 is a medium-severity vulnerability in AsyncHttpClient async-http-client, published on 18 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40490 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.asynchttpclient:async-http-client (Maven): affected from 2.0.0; fixed in 2.14.5\n- org.asynchttpclient:async-http-client (Maven): affected from 2.0.0; fixed in 2.14.5\n- org.asynchttpclient:async-http-client (Maven): affected from 3.0.0.Beta1; fixed in 3.0.9\n- org.asynchttpclient:async-http-client (Maven): affected from 3.0.0.Beta1; fixed in 3.0.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40490/ (Markdown: https://insights.sbomify.com/CVE-2026-40490/index.md)","id":"CVE-2026-40490","markdown":"https://insights.sbomify.com/CVE-2026-40490/index.md","name":"CVE-2026-40490","record":{"aliases":["CLEANSTART-2026-VY64057","CLEANSTART-2026-XH67541","DEBIAN-CVE-2026-40490","ECHO-2935-4daa-b367","GHSA-cmxv-58fp-fm3g","UBUNTU-CVE-2026-40490"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Java HTTP client library","requires_auth":"none","summary":"AsyncHttpClient leaks authorization credentials to untrusted domains during cross-origin redirects, allowing attackers to capture sensitive tokens and credentials.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. When redirect following is enabled (followRedirect(true)), versions of AsyncHttpClient 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 leaks credentials on cross-domain redirects and HTTPS-to-HTTP downgrades. Additionally, 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. 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. The fix in versions 3.0.9 and 2.14.5 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 users unable to upgrade, set `(stripAuthorizationOnRedirect(true))` in the client config and avoid using Realm-based authentication with redirect following enabled. Note that `(stripAuthorizationOnRedirect(true))` alone is insufficient on versions prior to 3.0.9 and 2.14.5 because the Realm bypass still re-generates credentials. Alternatively, disable redirect following (`followRedirect(false)`) and handle redirects manually with origin validation.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"AsyncHttpClient leaks authorization credentials to untrusted domains on cross-origin redirects","id":"CVE-2026-40490","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall","id":"CVE-2026-40491"},"packages":[{"ecosystem":"Maven","fixed":["2.14.5"],"introduced":["2.0.0"],"last_affected":[],"package":"org.asynchttpclient:async-http-client","purl":null,"source":"GHSA-cmxv-58fp-fm3g"},{"ecosystem":"Maven","fixed":["2.14.5"],"introduced":["2.0.0"],"last_affected":[],"package":"org.asynchttpclient:async-http-client","purl":"pkg:maven/org.asynchttpclient/async-http-client","source":"GHSA-cmxv-58fp-fm3g"},{"ecosystem":"Maven","fixed":["3.0.9"],"introduced":["3.0.0.Beta1"],"last_affected":[],"package":"org.asynchttpclient:async-http-client","purl":null,"source":"GHSA-cmxv-58fp-fm3g"},{"ecosystem":"Maven","fixed":["3.0.9"],"introduced":["3.0.0.Beta1"],"last_affected":[],"package":"org.asynchttpclient:async-http-client","purl":"pkg:maven/org.asynchttpclient/async-http-client","source":"GHSA-cmxv-58fp-fm3g"}],"prev":{"headline":"editorconfig-core-c has incomplete fix for CVE-2023-0341","id":"CVE-2026-40489"},"products":["async-http-client"],"published":"2026-04-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["AsyncHttpClient"]},"summary":"AsyncHttpClient leaks authorization credentials to untrusted domains during cross-origin redirects, allowing attackers to capture sensitive tokens and credentials.","url":"https://insights.sbomify.com/CVE-2026-40490/"}