CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-55688

CVE-2026-55688: Cookie Tossing / Cookie Injection Vulnerability in AsyncHttpClient

Alon Barad
Alon Barad
Software Engineer

Aug 27, 2026·5 min read·29 visits

Executive Summary (TL;DR)

AsyncHttpClient versions prior to 2.16.0 and 3.0.11 fail to perform origin domain validation when storing cookies. This allows an attacker-influenced server to inject cookies for arbitrary domains, which are subsequently sent to trusted servers, leading to potential session fixation or CSRF bypass.

CVE-2026-55688 is a medium-severity cookie injection vulnerability in the AsyncHttpClient (AHC) library. Due to a failure to validate the domain attribute against the origin server during cookie handling, applications using a shared AHC client instance are vulnerable to cookie-tossing attacks.

Vulnerability Overview

AsyncHttpClient (AHC) is a widely used Java library designed to execute HTTP requests asynchronously. The library is commonly integrated into backend services, microservices, web scrapers, and API gateways to execute outbound connections.

By default, AHC implements a shared cookie management system utilizing the ThreadSafeCookieStore class. This shared state model introduces a significant attack surface if a single client instance is reused to interact with both trusted resources and external, attacker-influenced endpoints.

Under default conditions, the HTTP client should strictly isolate cookie storage based on origin boundaries. When this boundary isolation fails, the client is exposed to cookie injection techniques, enabling unauthorized configuration of client-side application states across different security domains.

Root Cause Analysis

The root cause of CVE-2026-55688 is the library's omission of RFC 6265 Section 5.3 Step 6 verification during the parsing and storing of HTTP cookies. RFC 6265 governs how HTTP state management mechanisms must behave. Specifically, it mandates that an agent must reject cookies whose Domain attribute does not domain-match the request URI's host.

Prior to the patch, the ThreadSafeCookieStore.add method accepted the domain attribute specified in the server's Set-Cookie header without comparing it against the requesting host's domain. When the store processed the incoming metadata, it immediately mapped the parsed cookie to the domain claimed by the Set-Cookie header itself, rather than restricting it to the domain of the originating server.

Consequently, an untrusted server could register a cookie for an unrelated target domain. When the client subsequently initialized a request to the target domain, the shared ThreadSafeCookieStore retrieved the injected cookie and appended it to the outgoing HTTP headers.

Code Analysis

The vulnerability resided in ThreadSafeCookieStore.java. In the vulnerable implementation, the add method accepted incoming cookies and assigned their storage key directly using the parsed domain attribute.

// Vulnerable Implementation (Before Fix)
private void add(String requestDomain, String requestPath, Cookie cookie) {
    AbstractMap.SimpleEntry<String, Boolean> pair = cookieDomain(cookie.domain(), requestDomain);
    String keyDomain = pair.getKey();
    boolean hostOnly = pair.getValue();
    
    // Vulnerable code lacked domain-matching validation.
    // Any domain specified in the Set-Cookie header was processed directly.
    
    String keyPath = cookiePath(cookie.path(), requestPath);
    CookieKey key = new CookieKey(cookie.name().toLowerCase(), keyPath);
    // ... processes storage without verifying requestDomain against keyDomain ...
}

The fix, introduced in PR #2196 and PR #2199, added standard validation to reject mismatches.

// Patched Implementation (With Validation Guard)
private static boolean domainsMatch(String cookieDomain, String requestDomain) {
    return requestDomain.equals(cookieDomain) || requestDomain.endsWith('.' + cookieDomain);
}
 
private void add(String requestDomain, String requestPath, Cookie cookie) {
    AbstractMap.SimpleEntry<String, Boolean> pair = cookieDomain(cookie.domain(), requestDomain);
    String keyDomain = pair.getKey();
    boolean hostOnly = pair.getValue();
 
    // RFC 6265 Section 5.3 Step 6 verification
    // Rejects the cookie if the domain attribute does not domain-match the request host
    if (!hostOnly && !domainsMatch(keyDomain, requestDomain)) {
        return;
    }
 
    String keyPath = cookiePath(cookie.path(), requestPath);
    CookieKey key = new CookieKey(cookie.name().toLowerCase(), keyPath);
    // ... processes validated storage ...
}

While the patch prevents basic domain mismatches, it does not include Public Suffix List (PSL) validation, which represents an architectural limitation in multi-tenant environments.

Exploitation Methodology

An exploitation flow requires that the victim client application uses a single, shared AsyncHttpClient instance to process requests to both an attacker-controlled endpoint and a targeted secure domain.

First, the client application issues an HTTP request to http://www.attacker.com/. The attacker's server responds with an HTTP status code and a malicious header payload: Set-Cookie: session_id=evil_attacker_session; Domain=victim.com; Path=/.

Second, the vulnerable ThreadSafeCookieStore parses this response. Because of the missing validation check, AHC indexes this cookie under the domain key victim.com.

Third, when the client subsequently initiates a legitimate request to https://victim.com/, AHC queries the ThreadSafeCookieStore. The engine retrieves the injected cookie and injects it into the outbound request's headers, thereby compromising downstream authentication or session mechanisms.

Impact Assessment & Patch Limitations

The CVSS Base Score is evaluated at 4.0 (Medium) due to the high complexity required to execute the attack, as it relies on the execution of multiple sequentially targeted requests. However, the scope of the vulnerability is changed (S:C), meaning the compromise occurs across distinct security authorities.

Successful exploitation can facilitate session fixation attacks where the attacker pre-determines the session identifier of a client communicating with a secure server. Additionally, this allows attackers to overwrite critical anti-CSRF token cookies, rendering web interfaces susceptible to cross-site request forgery.

Furthermore, because the domainsMatch helper function uses a simple .endsWith() matching mechanism, it lacks verification against the Public Suffix List. In multi-tenant systems utilizing shared suffixes (e.g., github.io or herokuapp.com), an attacker hosting an application on a tenant subdomain can still toss cookies to sister subdomains, posing continued risks in multi-tenant configurations.

Official Patches

AsyncHttpClientGHSA Security Advisory Details
AsyncHttpClientPR resolving cookie domain validation bug in 3.x branch
AsyncHttpClientPR resolving cookie domain validation bug in 2.x branch

Fix Analysis (2)

Technical Appendix

CVSS Score
4.0/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
EPSS Probability
0.33%
Top 75% most exploited

Affected Systems

AsyncHttpClient versions 2.0.0 through 2.15.4AsyncHttpClient versions 3.0.0.Beta1 through 3.0.10

Affected Versions Detail

Product
Affected Versions
Fixed Version
async-http-client
AsyncHttpClient
>= 2.0.0, < 2.16.02.16.0
async-http-client
AsyncHttpClient
>= 3.0.0.Beta1, < 3.0.113.0.11
AttributeDetail
CWE IDCWE-1275, CWE-20, CWE-565
Attack VectorNetwork (AV:N)
CVSS v3.1 Score4.0
EPSS Score0.0033
Exploit Statuspoc
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1539Steal Web Session Cookie
Credential Access
T1556Modify Authentication Process
Defense Evasion
CWE-1275
Sensitive Cookie with Improper SameSite Attribute

Sensitive Cookie with Improper SameSite Attribute / Improper Input Validation

Vulnerability Timeline

Maintainer commits the core fix to the 3.x branch
2026-06-14
Contributor backports the fix to the 2.x branch
2026-06-15
CVE Advisory and GitHub Security Advisory Published
2026-07-01
NVD Record updated with final CVSS 3.1 metrics
2026-08-06

References & Sources

  • [1]NVD - CVE-2026-55688 Detail
  • [2]Debian LTS Announcement Advisory

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•27 minutes ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
1 views•11 min read
•about 1 hour ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 2 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 3 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 4 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 5 hours ago•CVE-2026-128084
4.8

CVE-2026-128084: Integer Truncation and SQL Query Truncation in sqlite3-ruby

Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.

Alon Barad
Alon Barad
5 views•11 min read