CVE-2026-82209
PoC masslibcurl PSL bypass stores public-suffix cookies with wildcard domain scope
libcurl builds with libpsl support fail to enforce the Public Suffix List boundary check when a server whose hostname is itself a public suffix (e.g., co.uk) sends a Set-Cookie with an explicit Domain attribute (e.g., Domain=co.uk). Instead of coercing the cookie to host-only scope, libcurl saves it as a wildcard-domain cookie (.co.uk), so it is replayed on subsequent requests and redirects to arbitrary sibling subdomains such as attacker.co.uk. An attacker who can induce a libcurl-based client to connect to such an origin and controls a sibling subdomain under the same public suffix can capture cookies intended only for the original host, potentially exposing session tokens or credentials (CVSS 3.1: 8.2, high integrity impact). Any application embedding libcurl in a build with libpsl enabled is affected; the data does not specify affected version ranges. Exploitation has not been observed: there is no public PoC, it is not in CISA KEV, and EPSS estimates only a ~0.4% chance of exploitation within 30 days.
What to do: Track the curl project and your OS vendor for a patched libcurl release and update as soon as available, since the data does not identify specific fixed versions. Verify whether your libcurl build has libpsl enabled (e.g., 'curl --version' or 'curl-config --configure') and, as an interim mitigation, avoid persistent cookie jars when connecting to hosts whose hostnames are themselves public suffixes, or re-enable strict PSL handling per your vendor's guidance. Check whether any of your workloads accept cookies from or interact with domains directly on public suffixes, where sibling-subdomain leakage would be exploitable.
| curl project (curl.se) libcurl / curl (when built with libpsl support enabled) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
When libpsl support is enabled, libcurl fails to enforce the Public Suffix List boundary check when processing a `Set-Cookie` header where the `Domain` attribute explicitly matches an origin host that is itself a public suffix (e.g., `Domain=co.uk` set by `co.uk`). Instead of coercing it into a strict host-only cookie, libcurl saves the cookie with wildcard domain scope (`.co.uk`). Consequently, the cookie is inappropriately included in subsequent outbound requests or HTTP redirects to arbitrary sibling subdomains under the same public suffix (e.g., `attacker.co.uk`).
- Vendors
- haxx
- Products
- curl
- Weakness
- CWE-201
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
In the news0 stories
No ingested article mentions this CVE yet.