{"id":"CVE-2026-55688","aliases":["CVE-2026-55688","GHSA-m452-q8c9-rg2f"],"related":[],"kind":"vulnerability","state":"published","title":"AsyncHttpClient: Cookie stored for an unrelated domain (cookie tossing) via ThreadSafeCookieStore","summary":"The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. In versions from 2.0.0 prior to 2.16.0 and from 3.0.0.Beta1 prior to 3.0.11, ThreadSafeCookieStore stored a cookie under the value of its Domain attribute without verifying that the responding host is allowed to set a cookie for that domain, leading to a cookie tossing / cookie injection issue. A host the client connects to can therefore plant a cookie scoped to an unrelated domain, and the client will then send that cookie on later requests to that domain. Applications that use a single AsyncHttpClient instance - and thus the default, shared CookieStore - to reach both an attacker-influenced host and a trusted host are impacted. This issue has been fixed in versions 2.16.0 and 3.0.11.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. In versions from 2.0.0 prior to 2.16.0 and from 3.0.0.Beta1 prior to 3.0.11, ThreadSafeCookieStore stored a cookie under the value of its Domain attribute without verifying that the responding host is allowed to set a cookie for that domain, leading to a cookie tossing / cookie injection issue. A host the client connects to can therefore plant a cookie scoped to an unrelated domain, and the client will then send that cookie on later requests to that domain. Applications that use a single AsyncHttpClient instance - and thus the default, shared CookieStore - to reach both an attacker-influenced host and a trusted host are impacted. This issue has been fixed in versions 2.16.0 and 3.0.11.","source":"cvelist"},{"lang":"en","text":"### Impact\n A **cookie tossing / cookie injection** issue (CWE-1275). `ThreadSafeCookieStore` stored a cookie under the value of its `Domain` attribute without verifying that the responding host is allowed to set a cookie for that domain (RFC 6265 §5.3 step 6). A host the client connects to can therefore plant a cookie scoped to an unrelated domain, and the client will then send that cookie on later requests to that domain.\n\n### Who is Impacted\nApplications that use a single `AsyncHttpClient` instance - and thus the default, shared `CookieStore` - to reach **both** an attacker-influenced host and a trusted host. Typical exposure: crawlers, link-preview / webhook fetchers, SSRF-style \"fetch this URL\" features, multi-backend aggregators, or following redirects to an attacker-controlled host. The attacker can *write* a cookie the client presents to the victim host (session fixation, overwriting a session id / CSRF-token cookie); they cannot *read* the victim host's cookies. Applications that talk only to a fixed trusted backend, or that disable/scope the cookie store, are not exposed.\n\n### Patches\nFixed in 3.0.11 and 2.16.0\n\n### Workarounds\n- Disable the cookie store (setCookieStore(null)) when cookies are not needed; or\n- Use a separate AsyncHttpClient (separate cookie store) per trust domain so an attacker-influenced host and a trusted host never share a jar\n- Supply a custom CookieStore whose add(Uri, Cookie) rejects cookies whose Domain is not domain-matched by the request host.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La biblioteca AsyncHttpClient (AHC) permite a las aplicaciones Java ejecutar fácilmente solicitudes HTTP y procesar asincrónicamente respuestas HTTP. En las versiones desde la 2.0.0 anterior a la 2.16.0 y desde la 3.0.0.Beta1 anterior a la 3.0.11, ThreadSafeCookieStore almacenaba una cookie bajo el valor de su atributo Domain sin verificar que el host que responde tiene permiso para establecer una cookie para ese dominio, lo que lleva a un problema de cookie tossing / inyección de cookies. Un host al que el cliente se conecta puede, por lo tanto, colocar una cookie con ámbito en un dominio no relacionado, y el cliente enviará entonces esa cookie en solicitudes posteriores a ese dominio. Las aplicaciones que utilizan una única instancia de AsyncHttpClient - y, por lo tanto, el CookieStore predeterminado y compartido - para acceder tanto a un host influenciado por un atacante como a un host de confianza se ven afectadas. Este problema ha sido solucionado en las versiones 2.16.0 y 3.0.11.","source":"nvd"}],"published":"2026-07-01T19:40:12.004Z","modified":"2026-10-25T16:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-1275"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.16.0","status":"affected"},{"version":">= 3.0.0.Beta1, < 3.0.11","status":"affected"}],"vendor":"AsyncHttpClient","product":"async-http-client","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0.Beta1","status":"affected","fixed":"3.0.11"}],"ecosystem":"Maven","package":"org.asynchttpclient:async-http-client","purl":"pkg:maven/org.asynchttpclient/async-http-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.16.0"}],"ecosystem":"Maven","package":"org.asynchttpclient:async-http-client","purl":"pkg:maven/org.asynchttpclient/async-http-client","source":"ghsa"}],"references":[{"url":"https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-m452-q8c9-rg2f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/pull/2196","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/08/msg00011.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55688","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/pull/2199","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/commit/8e4069cf3c92abe099db5fb13378ac2fe9e1fd3b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/commit/e6955c1e3951cf80e286981d064f6c926ce33f47","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/AsyncHttpClient/async-http-client","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-2.16.0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.11","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-02T14:38:49.490Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55688","url":"https://www.cve.org/CVERecord?id=CVE-2026-55688","licence":"CVE Terms of Use","modified":"2026-08-06T21:56:13.231Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m452-q8c9-rg2f","url":"https://github.com/advisories/GHSA-m452-q8c9-rg2f","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:14.308Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55688","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55688","licence":"Public domain","modified":"2026-10-25T16:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:26.956Z","epss":{"score":0.00286,"percentile":0.22761,"date":"2026-12-01T12:00:22.000Z"}}