Description
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.
Published: 2026-07-01
Score: 4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

AsyncHttpClient’s ThreadSafeCookieStore accepts cookies without validating that the host sending the cookie is permitted to set a cookie for the domain specified in the cookie’s Domain attribute. This defect is a domain validation flaw (CWE‑1275) and also represents a cookie injection weakness (CWE‑346). The defect allows a server that the application contacts to plant a cookie for an unrelated domain, and the library will store it. Subsequent requests to that domain will automatically include the forged cookie. This creates an unauthorized cookie injection vulnerability.

Affected Systems

The impacted product is AsyncHttpClient’s async‑http‑client library. Versions 2.0.0 through 2.15.9 and 3.0.0.Beta1 through 3.0.10 are affected. Applications that use a single AsyncHttpClient instance—and share the default CookieStore—between an attacker‑controlled host and a trusted host are at risk. The fix was shipped in 2.16.0 and 3.0.11.

Risk and Exploitability

The CVSS score of 4.0 denotes moderate severity, and the EPSS score of less than 1% signals a very low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Likely, an attacker would need to persuade the Java application to communicate with a malicious server that returns a cookie with a foreign Domain attribute. Once the cookie is stored, it will be sent on subsequent requests to the unsuspecting domain. Based on the description, it is inferred that the forged cookie could interfere with authentication mechanisms that rely on domain‑scoped cookies, potentially enabling session hijacking or credential manipulation in vulnerable applications.

Generated by OpenCVE AI on July 21, 2026 at 13:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to async-http-client version 2.16.0 or newer, or to 3.0.11 or newer, to apply the domain‑validation fix.
  • Avoid sharing a single AsyncHttpClient instance across multiple domains; instantiate separate clients per domain or configure a per‑request cookie store.
  • If upgrading is not immediately possible, configure the CookieStore to reject cookies with a foreign Domain attribute or disable cookie handling for sensitive requests.

Generated by OpenCVE AI on July 21, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 08 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-346
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 02 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description 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.
Title AsyncHttpClient: Cookie stored for an unrelated domain (cookie tossing) via ThreadSafeCookieStore
Weaknesses CWE-1275
References
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-02T14:39:00.419Z

Reserved: 2026-06-17T00:13:10.650Z

Link: CVE-2026-55688

cve-icon Vulnrichment

Updated: 2026-07-02T14:38:55.557Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-01T19:40:12Z

Links: CVE-2026-55688 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T13:30:07Z

Weaknesses
  • CWE-1275

    Sensitive Cookie with Improper SameSite Attribute

  • CWE-346

    Origin Validation Error