
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-6276 is a cookie disclosure vulnerability in libcurl titled "stale custom cookie host causes cookie leak." When an application sets a custom Host: header for an HTTP request and then makes a subsequent request using the same easy handle without the custom header, libcurl reuses stale host information and transmits cookies intended for the first host to the second host. Affected versions span libcurl 7.71.0 through 8.19.0 (inclusive); the curl command-line tool itself is not affected. The vulnerability was reported on April 14, 2026, and publicly disclosed on April 29, 2026, coordinated with the release of libcurl 8.20.0. It carries a CVSS v3.1 base score of 7.5 (High) per NVD, though the curl project rates its severity as Low due to significant mitigating factors (curl Advisory, Openwall OSS-Sec).
The root cause is classified as CWE-346 (Origin Validation Error) by the curl project, with the internal state variable data->state.aptr.cookiehost not being cleared between requests on the same easy handle when the custom Host: header is removed (curl Advisory, HackerOne Report). The bug was introduced in commit e15e51384a423be31318b3c9c7d612a1aae661fd and fixed in commit 3a19987a87f393d9394fe5acc7643f6c263c92db. Exploitation requires an application to: (1) use libcurl's easy handle API, (2) set a custom Host: header on a first request, and (3) reuse the same handle for a subsequent request to a different host without explicitly clearing the header. The impact is limited to plain HTTP transfers, as HTTPS would additionally require correct SNI configuration — a factor the curl project notes likely contributed to the flaw going undetected for so long (curl Advisory, Openwall OSS-Sec).
The primary consequence is confidentiality loss through unintended disclosure of session cookies or authentication tokens to an unintended host. An application reusing a libcurl easy handle across requests to different servers could inadvertently send sensitive cookies — including session identifiers or authentication credentials — to a second, potentially untrusted server. Because the flaw is limited to HTTP (not HTTPS with proper SNI), the practical scope is narrowed, but applications performing HTTP-based API calls or debugging workflows that reuse handles with custom Host: headers remain at risk of credential leakage and potential session hijacking (curl Advisory, Feedly).
A HackerOne disclosure report (report #3671818) exists but contains only a description of the vulnerability without runnable exploit code or step-by-step reproduction instructions; no functional proof-of-concept exploit is publicly available (HackerOne Report). There is no evidence of in-the-wild exploitation, no known threat actor attribution, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.008% (0.000080), reflecting very low probability of exploitation in the near term. Multiple Nessus detection plugins (IDs 310990, 311420, 312298, 313680, 315269) have been published to identify vulnerable systems (Feedly).
Host: headers, such as a debugging proxy or a multi-tenant HTTP client.Host: header set (e.g., Host: target-host.example.com) using a libcurl easy handle, which populates the stale data->state.aptr.cookiehost field.Host: header, so libcurl retains the stale cookie host context.Cookie: headers destined for a host that did not originally set those cookies; cookie values appearing in requests to unrelated endpoints or servers.CURLOPT_VERBOSE) showing cookie transmission to unexpected destinations.The primary remediation is to upgrade libcurl to version 8.20.0 or later, which contains the fix in commit 3a19987a87f393d9394fe5acc7643f6c263c92db (curl Advisory). If an immediate upgrade is not feasible, the curl project recommends applying the patch and rebuilding libcurl, or avoiding the use of custom Host: headers entirely. As an application-level workaround, developers should avoid reusing easy handles across requests to different hosts, or explicitly clear/reset the custom Host: header between requests. Downstream distributions including Red Hat (RHSA-2026:12916), Ubuntu (USN-8227-1), and SUSE have released updated packages (Red Hat Advisory, Ubuntu Advisory).
The vulnerability was disclosed by curl maintainer Daniel Stenberg via the oss-security mailing list on April 29, 2026, coordinated with the libcurl 8.20.0 release (Openwall OSS-Sec). The curl project rated the severity as "Low" due to the HTTPS/SNI mitigating factor, noting it is "probably a contributing factor why no one else found it before this" (curl Advisory). The vulnerability was reported by security researcher Muhamad Arga Reksapati via HackerOne. Downstream ecosystem adoption was broad, with patches quickly integrated into Red Hat, Ubuntu, SUSE, openSUSE, Alpine Linux, Puppet, Unraid, and HashiCorp Consul, reflecting the ubiquity of libcurl as a dependency.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."